IRC logs of #tryton for Wednesday, 2011-10-19

chat.freenode.net #tryton log beginning Wed Oct 19 00:00:03 CEST 2011
2011-10-19 06:13 <zxq9> Is the HelloWorld Module turorial up to date? I am getting an error from the hello.xml
2011-10-19 06:18 <zxq9> NM, found the problem. The 'select="1"' part of the CDATA xml lines has to be removed in v2.0
2011-10-19 09:08 <zxq9> Is there a way to declare a field as an array instead of a single item? PostgreSQL supports this but I don't understand how to do it in a Tryton module.
2011-10-19 10:03 <zxq9> Hi cedk. Is there a way to make an array in a field?
2011-10-19 10:15 <cedk> zxq9: it is a one2many
2011-10-19 10:45 <cedk> zxq9: indeed what is your requirements
2011-10-19 11:29 <zxq9> cedk: I need a way to make 3 spellings for the same name searchable as the same name. (In Japanese a name can be kanji, kana or roman letters and all three are correct)
2011-10-19 11:30 <zxq9> If this were just in psql I would make a name column an array, and pick [1] to be the display name, and any [1+n] searched with the same weight as [1]
2011-10-19 11:32 <cedk> zxq9: I don't see how you can display that in the GUI
2011-10-19 11:32 <cedk> zxq9: it is an interesting problem :-)
2011-10-19 11:33 <cedk> zxq9: I guess multi-language doesn't solve the issue?
2011-10-19 11:33 <zxq9> I was thinking of just leaving the "display name" as the only one normally shown, and have an expansion box to add further spellings.
2011-10-19 11:33 <zxq9> Not quite, though it is very close.
2011-10-19 11:34 <zxq9> Multilanguage searches don't work the way I need them to.
2011-10-19 11:34 <zxq9> Imagine your name, your nickname and your login name all being equally valid, but your real name being the only field necessary to display.
2011-10-19 11:35 <zxq9> So fields really only *must* be shown when creating a record, not really when pulling one or listing them.
2011-10-19 11:37 <cedk> zxq9: but in Japan, don't you take some kind of agreement to use for the software always the same set of characters?
2011-10-19 11:38 <zxq9> No. If some people do that they are making life hard for themselves.
2011-10-19 11:40 <zxq9> When you do things like register at the city office for taxes (or business ownership) you write down your kanji name (like 夜神 岩男), then above it the kana spelling (やがみ いわお or ヤガミ イワオ) and for some uses also write the Roman version ("Iwao Yagami" and here the names are reversed, family name last, but sometimes people write this "YAGAMI Iwao" instead)
2011-10-19 11:41 <cedk> ACTION discover that my policy doesn't display kana nor kanji :-)
2011-10-19 11:41 <zxq9> In searches kana is the most common, because they are impossible to screw up -- but you can't print a business letter to someone like that, its rude.
2011-10-19 11:42 <zxq9> :-)
2011-10-19 11:42 <bechamel> cedk: s/policy/font/ :)
2011-10-19 11:43 <zxq9> you mean in IRC or in Tryton? :-)
2011-10-19 11:43 <cedk> zxq9: I think it should be possible to customize the multi-language behavior to allow searching on many language at once
2011-10-19 11:44 <zxq9> And that leaves one problem. Kanji, katakana, hiragana and romaji are all one language, not many. So multiple spellings within a single language also must exist.
2011-10-19 11:44 <zxq9> This problem also exists for Korean and Chinese, by the way.
2011-10-19 11:45 <zxq9> (very similar, anyway -- not everybody has four alphabets)
2011-10-19 11:45 <cedk> zxq9: I think in common software there is a different language for each set of characters
2011-10-19 11:46 <cedk> ja_JP.SJIS, ja_JP.ct, ja_JP.ISO2022-JP etc.
2011-10-19 11:47 <zxq9> No, Shift-JIS has all four available.
2011-10-19 11:48 <zxq9> So I can write Japan - > 日本 -> にほん -> ニホン all in the same line in any Japanese character set.
2011-10-19 11:49 <zxq9> *in any single encoding.
2011-10-19 11:52 <cedk> zxq9: is it possible to convert from one sets to an other?
2011-10-19 11:52 <zxq9> There are libraries to handle this.
2011-10-19 11:52 <zxq9> But not from kanji
2011-10-19 11:53 <zxq9> There are many possible pronounciations for each kanji, especially with family names, so the normal way to do it is always provide two fields, one for kana and one for kanji
2011-10-19 11:55 <zxq9> There are a few ways to romanize the sounds as well (chyuuo/chyu/chuo/etc or kombanwa/konbanha/etc) so this is also impractical. It gets really crazy when foreign names written in kana. You should see how they say "McDonald's" here!
2011-10-19 11:56 <zxq9> But katakana <--> hirgana is no problem.
2011-10-19 11:57 <cedk> zxq9: I don't see why having two languages will be an issue if we allow to search on both at once
2011-10-19 11:57 <zxq9> Because that is still only 2 fields, I need three or four.
2011-10-19 11:58 <zxq9> "katakana" is not a language, it is just one of four correct ways to spell.
2011-10-19 11:59 <cedk> zxq9: ok 4 languages
2011-10-19 12:00 <zxq9> That doesn't make sense. We would have to create 3 new language positions just to represent Japanese. And then what, create 2 and 3 more each for Cantonese, Taiwanese, Korean, Mandarin, etc.? This gets ridiculous very fast.
2011-10-19 12:01 <cedk> zxq9: I don't find
2011-10-19 12:02 <cedk> zxq9: it is the same as what you propose except that I propose to reuse something that already exists
2011-10-19 12:02 <zxq9> Isn't that a lot more field duplication than just making a few fields possible arrays?
2011-10-19 12:04 <cedk> zxq9: no
2011-10-19 12:07 <cedk> zxq9: but it will only works on translatable fields
2011-10-19 12:14 <cedk> https://secure.wikimedia.org/wikipedia/en/wiki/Locale
2011-10-19 12:14 <cedk> there is the @modifier that could be used
2011-10-19 12:17 <zxq9> If I make 4 languages to represent Japanese, it will only make copies of certain fields, but not entire tables?
2011-10-19 12:19 <zxq9> Anyway, one of the great things about how Tryton is structured is that experimenting both ways is easy.
2011-10-19 12:24 <zxq9> Hrm... looking at the rest of my localization list, and the nature of this particular problem, I wonder if JP-specific extensions to some modules isn't better.
2011-10-19 12:25 <zxq9> Anyway, its easy to play around with ideas inside Tryton, so I'll see what happens.
2011-10-19 12:26 <zxq9> Thanks for the help. I'm sure I'll be back with a question or two again soon.
2011-10-19 16:08 <ch_larsen> Good evening from Afghanistan - a quick question, if I may: I seem to be unable to change the defaut server password (admin), even though the configuation file trytond.conf is read and used. I am using python2.6 and the latest stable tryton version on FreeBSD. Thanks a lot in advance!
2011-10-19 16:09 <cedk_> ch_larsen: look at the server output to see which configuration file it uses
2011-10-19 16:10 <ch_larsen> i have, no worries. it does follow my configuration file's instructions otherwise, e.g. SSL connection, certificates, activation of webdav, etc
2011-10-19 16:10 <ch_larsen> so, this is a wee bit strange, as the config file IS read...
2011-10-19 16:14 <cedk_> ch_larsen: it looks strange
2011-10-19 16:15 <ch_larsen> true (and thanks for your help!) .... If I enter a different password into trytond.conf, I cannot use any database management facilties, as the server password is declared as invalid. password "admin", however, works
2011-10-19 16:16 <cedk_> ch_larsen: I'm pretty sure you don't update the right configuration file
2011-10-19 16:18 <ch_larsen> but how come trytond recognises webdav activation via trytond.conf (disabled by default), for instance. plus ssl and certificate location? and complains, if i change the name of the certificate path mentioned inside trytond.conf...?
2011-10-19 16:18 <ch_larsen> sigh
2011-10-19 16:22 <cedk_> ch_larsen: I tested here and it works
2011-10-19 16:23 <ch_larsen> it works on my linux mint (debian-based) notebook to, but not on my freebsd server. any ideas re. architecture-specific issues?
2011-10-19 16:24 <cedk_> ch_larsen: i don't think
2011-10-19 16:27 <ch_larsen> freebsd jail issues?
2011-10-19 16:28 <ch_larsen> (no logs observed along that line, though...)
2011-10-19 16:29 <cedk_> ch_larsen: you must look at the logging of the server, at the starting it show you which configuration file it is using
2011-10-19 16:31 <ch_larsen> let me catch that one... :-)
2011-10-19 16:33 <ch_larsen> [Wed Oct 19 20:01:39 2011] INFO:server:using /usr/local/etc/trytond.conf as configuration file [Wed Oct 19 20:01:39 2011] INFO:server:initialising distributed objects services [Wed Oct 19 20:01:40 2011] INFO:modules:ir:registering classes [Wed Oct 19 20:01:40 2011] INFO:modules:res:registering classes [Wed Oct 19 20:01:40 2011] INFO:modules:test:registering classes [Wed Oct 19 20:01:40 2011] INFO:modules:webdav:registering classes
2011-10-19 16:33 <ch_larsen> this is the correc file
2011-10-19 16:33 <ch_larsen> :-(
2011-10-19 16:36 <udono> ch_larsen: hi, did you have any special characters in the password? try with only alphanum.
2011-10-19 16:40 <ch_larsen> my current password is test
2011-10-19 16:41 <ch_larsen> is it sufficient to comment out the default password?
2011-10-19 16:41 <ch_larsen> #admin_password admin (CR) admin_password test
2011-10-19 16:42 <ch_larsen> sorry, with the "=" in betwen
2011-10-19 17:00 <cedk_> ch_larsen: yes
2011-10-19 17:07 <ch_larsen> am a bit at a loss here...
2011-10-19 17:12 <ch_larsen> oops, just noted sth: the modified password is correctly mentioned in trytond.conf on the server. HOWEVER, on the client side, we have ~.config/tryton/tryton.conf, and the password there is admin. Do I have to delete the client-side config file when changing the server password?
2011-10-19 17:15 <cedk_> ch_larsen: no
2011-10-19 17:15 <ch_larsen> i have un-set the client-side password and databse, let me see now whether i can log in using the bespoke password
2011-10-19 17:18 <cedk_> ch_larsen: admin_password is not about login but database manipulation
2011-10-19 17:18 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton
2011-10-19 17:18 <ch_larsen> exactly
2011-10-19 17:18 <ch_larsen> deleting client-side settings does not float, either
2011-10-19 17:18 <ch_larsen> it is still "admin"
2011-10-19 17:19 <cedk_> ch_larsen: are not you mixing admin_password and the password of the user admin?
2011-10-19 17:20 <ch_larsen> nope
2011-10-19 17:21 <ch_larsen> no prob with the instance (using plone speak) user admin and his/her password
2011-10-19 17:21 <ch_larsen> the only prob i have is with the tryotin SERVER passwd, the one you stick into trytond.conf
2011-10-19 17:22 <ch_larsen> btw, if you are cedric, best regards from the gnusolidario (luis) and bika labs (crew)... guess you are in the picture how we (i am part oof the team) are trying to use the tryton platfrom for a comprehensive hospital and laboratory management information platform for resource-poor countries
2011-10-19 17:24 <cedk_> ch_larsen: I'm
2011-10-19 17:25 <ch_larsen> great!!! i am sure you are aware of this effort, and I am glad we "found" you after he got immensely fed-up by the machiavellian Tiny exploit
2011-10-19 17:25 <ch_larsen> i also feel that tryton is hugely more stable
2011-10-19 17:25 <ch_larsen> thanks a bucket for that!
2011-10-19 17:35 -!- ciupicri(~ciupicri@unaffiliated/ciupicri) has joined #tryton
2011-10-19 17:36 <cedk_> ch_larsen: you can put print statement in the config.py file to understand what is readed from the config file
2011-10-19 17:37 <ch_larsen> thanks a lot, will try!
2011-10-19 21:21 <ch_larsen> Cedric, some tiny (diagnostic) progress: If I hardcode the password into config.py, it is accepted.
2011-10-19 21:33 <yangoon> cb_larsen oh, yet away
2011-10-19 21:33 <yangoon> just in case, the param is *admin_passwd*

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!