IRC logs of #tryton for Thursday, 2008-08-07

chat.freenode.net #tryton log beginning Thu Aug 7 00:00:01 CEST 2008
2008-08-07 06:05 -!- Leyoda(n=Leyoda@pic33-1-87-88-179-8.dsl.club-internet.fr) has joined #tryton
2008-08-07 06:35 -!- Leyoda(n=Leyoda@pic33-1-87-88-179-8.dsl.club-internet.fr) has joined #tryton
2008-08-07 07:59 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-08-07 08:02 <CIA-54> tryton: uspallek roundup * #235/Using pycountry for Languages, Countries, Subdivisions of countries (States), Currencies: [new] http://pypi.python.org/pypi/pycountry/0.10
2008-08-07 09:09 -!- nicoe(n=nicoe@ip-80-236-206-69.dsl.scarlet.be) has joined #tryton
2008-08-07 09:20 -!- Gedd(n=ged@77.109.115.56) has joined #tryton
2008-08-07 09:35 -!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-08-07 09:35 <gadaga> hi
2008-08-07 09:36 <nicoe> Hi
2008-08-07 09:36 <gadaga> nicoe: hi
2008-08-07 09:37 <nicoe> udono: I commited to mercurial the stuff we talked about yesterday
2008-08-07 09:37 <nicoe> udono: I'm quite happy with it
2008-08-07 09:37 <udono> nicoe: great
2008-08-07 09:38 <udono> nicoe: now we have a general input method for odt and dos via hyperlinks?
2008-08-07 09:38 <udono> dos=ods
2008-08-07 09:38 <nicoe> yes :)
2008-08-07 09:38 <udono> nicoe: I will take a look. Is there an egg available?
2008-08-07 09:39 <nicoe> not yet
2008-08-07 09:41 <nicoe> I suppose we can use those link the same way to generate openoffice presentation
2008-08-07 09:41 <nicoe> I fail to see a usage, but if it works ...
2008-08-07 09:44 <udono> nicoe: wow, we can autogenerate Business presentations with actual data for the directors' meeting...
2008-08-07 09:44 <udono> nicoe: did you test it?
2008-08-07 09:44 <nicoe> Not yet ...
2008-08-07 09:45 <udono> ok, I will do. Frist I need to put the code inside my python installation...
2008-08-07 09:45 <udono> Frist=first
2008-08-07 09:46 <udono> nicoe: may I just overwrite the old egg contents?
2008-08-07 09:47 <nicoe> just overwrite the 'relatorio' directory in the egg directory will be enough
2008-08-07 09:47 <nicoe> that's how I work
2008-08-07 09:50 <udono> nicoe: ok, I do
2008-08-07 09:55 <udono> nicoe: looks much more clean than before, and much more easy!
2008-08-07 09:55 <udono> nicoe: great work done!
2008-08-07 09:56 <nicoe> Once you gave me the idea it was a piece of cake :)
2008-08-07 09:56 <udono> nicoe: Great collaboration!
2008-08-07 09:57 <nicoe> I'll credit you in the AUTHORS file. Can I include your name / email ?
2008-08-07 10:01 -!- gael_(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-08-07 10:03 <udono> nicoe: yes, Iam Udo Spallek <udono@virtual-things.biz>
2008-08-07 10:03 <nicoe> udono: thanks
2008-08-07 10:04 <udono> nicoe: email is working tommorow...
2008-08-07 10:04 <udono> nicoe: thank you for the great implementation!
2008-08-07 10:05 <nicoe> Did you test it with OO presentation ?
2008-08-07 10:15 <udono> nicoe: Iam on ... just wait a few minute
2008-08-07 10:28 -!- bechamel(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton
2008-08-07 10:43 <udono> nicoe: nope, doesnt work
2008-08-07 10:44 <udono> nicoe: I can bundle you my files and mail
2008-08-07 10:44 <udono> nicoe: there seems a handler missing for odf
2008-08-07 10:45 <udono> nicoe: and if I include a table into odp then we have two content.xml objects, because the table is embedded ods in odp
2008-08-07 10:46 <udono> bechamel: nicoe changed the report engine, now we are able to handle ods and odt
2008-08-07 10:46 <udono> bechamel: hi
2008-08-07 10:46 <udono> bechamel: the genshiconstructs are now inserted via Hyperlinks
2008-08-07 10:47 <udono> af
2008-08-07 10:47 <udono> k
2008-08-07 10:48 <bechamel> udono: great
2008-08-07 10:51 -!- markusleist(n=markus@212.14.79.210) has joined #tryton
2008-08-07 10:51 <bechamel> udono: i will take a look
2008-08-07 10:52 <udono> bechamel: its just implemented in the relatorio svn/mercurial but you can try the examples
2008-08-07 10:53 <nicoe> bechamel: there's also an egg
2008-08-07 10:53 <nicoe> Gedd told me that he sees problem coming with this approach
2008-08-07 10:54 <bechamel> nicoe: what kind of problem ?
2008-08-07 10:54 <nicoe> eg: after a change in your code you forget to change the links in the document
2008-08-07 10:55 <nicoe> 1st a little example: <text:a href="relatorio://brol">My text</a>
2008-08-07 10:55 <CIA-54> tryton: rli roundup * #236/KeyError: u'perm_unlink': [new] Traceback (most recent call last): File "/trytond/netsvc.py", line 335, in run res = method(*msg[2:]) File "/trytond/web_service/wiz ...
2008-08-07 10:55 <nicoe> is parsed as a call to replace the link by the content of the variable 'brol'
2008-08-07 10:56 <nicoe> But in your document you do not see that. At first I found it great but what happens when you change your code and rename brol to foo
2008-08-07 10:57 <nicoe> You do not see it anymore in the document and thus you must search for this code.
2008-08-07 10:57 <Gedd> nicoe: bah, if you add a check in the code so that the "text" of the link is either the same as the href, without relatorio:// or it is empty, that should prevent such mistake and "hide and seek with the bugs" game
2008-08-07 10:58 <nicoe> Gedd: I was just writing that :)
2008-08-07 10:58 <bechamel> nicoe: Gedd : you're not in the same place today ? :)
2008-08-07 10:58 <nicoe> no :)
2008-08-07 10:58 <nicoe> I was lazy and did not take the train :)
2008-08-07 11:00 <nicoe> bechamel: replacing the code in the report should be a matter of a vim subs (I did it yesterday it works very well)
2008-08-07 11:01 <nicoe> bechamel: But I know you're an emacser :)
2008-08-07 11:02 <bechamel> nicoe: alt-x query-replace
2008-08-07 11:02 <nicoe> bechamel, And you can do pattern matching with replacement of subpatterns ?
2008-08-07 11:04 <bechamel> nicoe: alt-x query-replace-regexp :)
2008-08-07 11:05 <bechamel> nicoe: it's me or the syntax also changed ? i dont see < and > anymore in the odt files
2008-08-07 11:05 <nicoe> bechamel: two commands for the same thing with a lot to type: EMACS
2008-08-07 11:05 <nicoe> bechamel: indeed
2008-08-07 11:06 <nicoe> we switched from text:placeholder to text:a
2008-08-07 11:07 <nicoe> +: the style is more visible, works in ods (and probably others udono is testing), separation of view/data
2008-08-07 11:08 <udono> nicoe: odf is not working...
2008-08-07 11:08 <nicoe> -: separation of view/data means harder to debug
2008-08-07 11:09 <nicoe> udono what is the backtrace ?
2008-08-07 11:09 <nicoe> udono: can you send me the document you used ?
2008-08-07 11:09 <nicoe> udono: nicoe@openhex.org
2008-08-07 11:10 <udono> nicoe: about the hyperlink URL and name gedd mentioned ... maybe its more easy to encode if we just use relatorio:// as URL and the name for the genshi things. So we can simply manipulate the name and the URL is everytime relatorio://
2008-08-07 11:12 <Gedd> that's an option which seem viable to me
2008-08-07 11:12 <nicoe> udono you mean using 'relatorio://' as an url and the expression inside the tag.
2008-08-07 11:12 <nicoe> nicoe seems good to me
2008-08-07 11:13 <udono> nicoe: yes
2008-08-07 11:13 <Gedd> hu?
2008-08-07 11:13 <Gedd> you seem good to urself? :)
2008-08-07 11:14 <nicoe> ACTION is narcissic ?
2008-08-07 11:14 <Gedd> that's a bit unnatural, but using links for that is already unatural...
2008-08-07 11:14 <Gedd> I'd like to have cedk's opinion on this
2008-08-07 11:14 <udono> Gedd: hi, nicoe recognice himself, and this is good for himself. Hope he will not fall infinite regression ;-)
2008-08-07 11:15 <nicoe> I'm a schemer I do only tail-recursion stuffs ;)
2008-08-07 11:15 <Gedd> :)
2008-08-07 11:15 <udono> :-)
2008-08-07 11:15 <Gedd> bechamel: have you followed the discussion? if so, what do you think?
2008-08-07 11:15 <bechamel> Gedd: unfortunately for ced his web connection his down since yesterday morning
2008-08-07 11:15 <Gedd> ah! ok
2008-08-07 11:16 <bechamel> Gedd: and what's hapening when the there is an empty content for the url ? does ooo show the actuel url or just nothing ?
2008-08-07 11:16 <nicoe> bechamel: If he wants he can come to my flat and share my wifi.
2008-08-07 11:17 <bechamel> nicoe: how can is say "harceler la hot-line" in english ? :)
2008-08-07 11:18 <Gedd> bechamel: if there is no text in the link, OO shows the link target (href), which is good, but not very nice as it includes the "relatorio://", which clutters things
2008-08-07 11:18 <bechamel> Gedd: and also the link is showned on mouse-over
2008-08-07 11:19 <udono> nicoe: you got post
2008-08-07 11:20 <nicoe> udono: I got post ?
2008-08-07 11:20 <udono> nicoe: email
2008-08-07 11:20 <nicoe> ok :)
2008-08-07 11:21 <udono> bechamel: ced can come to Aken, too if he like :-)
2008-08-07 11:21 <nicoe> udono: So you're not too far from us :)
2008-08-07 11:22 <udono> nicoe: where are you?
2008-08-07 11:22 <nicoe> udono: Liège too
2008-08-07 11:22 <udono> nicoe: Euregio connection
2008-08-07 11:23 <nicoe> Euregio gang in da houz !! :)
2008-08-07 11:23 <udono> nicoe: :-)
2008-08-07 11:24 <Gedd> nicoe: Aken is not Achen AFAIK http://en.wikipedia.org/wiki/Aken_(Elbe)
2008-08-07 11:24 <udono> Gedd: But iam aachen
2008-08-07 11:24 <Gedd> oh, ok :)
2008-08-07 11:25 <udono> Gedd: Aix-la-chappele
2008-08-07 11:25 <udono> Gedd: or in Flandern - Aken
2008-08-07 11:25 <udono> :-)
2008-08-07 11:28 <udono> Gedd: but if the relatorio:// is shown in a document, we know there is a genshi directive missing...
2008-08-07 11:28 <udono> Gedd: and we can edit this directive without open a dialog...
2008-08-07 11:29 <Gedd> i always thought aachen was in holland, not in Germany... Me and geography...
2008-08-07 11:29 <Gedd> udono: yep, that's a good thing
2008-08-07 11:30 <udono> Gedd: we are 500m away from Netherlands, maybe therefore... but we are even 500m away from east-Belgium...
2008-08-07 11:32 <udono> bechamel: is there a way to get the translations of fieldnames in reports? like amount, description, VAT, an so on...
2008-08-07 11:33 <udono> afk
2008-08-07 11:36 <nicoe> udono: There is an example of translation using the genshi filter in the test_odt.py file
2008-08-07 11:40 <udono> nicoe: did it work with the tryton translations?
2008-08-07 11:40 <udono> nicoe: its not gettext based afaik
2008-08-07 11:40 <nicoe> I don't know ... cedk tested it
2008-08-07 11:40 <udono> nicoe: ok, I will see
2008-08-07 11:45 <udono> nicoe: ok, this is for translating the contents. this is already working, but I like the translation of the labels: amount, description, VAT, an so on... with this we can parametrize the complete report for many languages...
2008-08-07 11:45 <udono> afk
2008-08-07 11:47 <nicoe> yes. I haven't yet think about that.
2008-08-07 11:48 <bechamel> udono: what i know is that there is a setLang call available in the reports but i thing it is not used for the labels
2008-08-07 11:50 <bechamel> thing > think
2008-08-07 11:57 <CIA-54> tryton: bch roundup * #236/KeyError: u'perm_unlink': [chatting] perm_unlink what removed and replaced by perm_delete in the kernel. You probably need to update the modules.
2008-08-07 11:58 <gadaga> bechamel : where is cdk?
2008-08-07 11:58 <bechamel> gadaga: at his home, but his connection is broken
2008-08-07 11:59 <gadaga> bechamel: lol
2008-08-07 12:03 <gadaga> bechamel: in party if you don't put vat_country, we couldn't be eable to create a party?
2008-08-07 12:05 <bechamel> gadaga: why, the field is not required
2008-08-07 12:06 <gadaga> bechamel: i have an exception that say : 'bool' object has no attribue 'lower'
2008-08-07 12:07 <gadaga> bechamel: it's in the function check_vat
2008-08-07 12:07 <bechamel> gadaga: anyway i just discovered a bug ...
2008-08-07 12:13 <CIA-54> tryton: Bertrand Chenal <bch@b2ck.com> default * 119:a9e615e45c15 relationship/party.py: Fix: don't try to test the vat number if there is no vat country
2008-08-07 12:13 <gadaga> bechamel: i'll try
2008-08-07 12:13 <bechamel> gadaga: ok
2008-08-07 12:14 <gadaga> bechamel: ok works fine :)
2008-08-07 12:43 <udono> bechamel: how can we handle invoices and other reports for different languages/nations?
2008-08-07 12:52 <bechamel> udono: i don't know, i think the way to work will be to provide one odt file per lang
2008-08-07 12:53 <udono> bechamel: ok, this could work on filesystem level, like invoice_de_DE.odt
2008-08-07 12:54 <udono> bechamel: thanks
2008-08-07 12:57 <nicoe> udono: In fact the presentation almost work. But the tables are not included like in odt they use an inner document.
2008-08-07 12:59 <udono> nicoe: ok, great.
2008-08-07 12:59 <udono> nicoe: so we need a loop arount the different content.xml in future to get this work?
2008-08-07 13:21 <nicoe> udono I'm trying to understand how the inclusion works
2008-08-07 13:22 <nicoe> udono: But it seems to be the case.
2008-08-07 13:36 <udono> nicoe: but there is the binary in object replacement, I dont know what it is for, but inside are the genshi strings, too
2008-08-07 13:36 -!- Gedd(n=ged@77.109.115.56) has joined #tryton
2008-08-07 13:37 <nicoe> file on this binary does not says anything
2008-08-07 13:38 <nicoe> but I suppose this is an image (it's in a draw:image tag)
2008-08-07 14:08 <gadaga> bechamel: fields in each module don't change in the future?
2008-08-07 14:33 -!- kultviech(n=kultviec@p5497498C.dip.t-dialin.net) has joined #tryton
2008-08-07 14:57 <gadaga> bechamel: ?
2008-08-07 15:21 <gadaga> who know how to create a record with a m2m with pysocket?
2008-08-07 15:32 <nicoe> udono: I finally understood what is going on with the inclusion of oo files. And I am happy to say that now the inclusion works too.
2008-08-07 15:33 <udono> nicoe: you get the calc table inside odt to work?
2008-08-07 15:34 <udono> nicoe: great!
2008-08-07 15:34 <nicoe> yes the calc table inside the odP is working
2008-08-07 15:34 <nicoe> you putted also a table into the odt (never opened them) ?
2008-08-07 15:37 <udono> nicoe: no, I didnt, but relatorio is going to be a general solution for parsing odf files
2008-08-07 15:37 <nicoe> The code is not document-type depend so it should work
2008-08-07 15:38 <udono> nicoe: I will test it in the evening or tomorrow, writing you feedback and some examples
2008-08-07 15:39 <nicoe> In the meantime, I'll clean up my code and push it. I also have to get back to the site I have to do for a customer so don't expect to see me tomorrow :(
2008-08-07 16:12 <bechamel> gadaga: sorry i was on phone
2008-08-07 16:12 <gadaga> bechamel: ;)
2008-08-07 16:13 <bechamel> gadaga: for the fields, i think they are not gonna change a lot
2008-08-07 16:14 <bechamel> gadaga: you think about a field in particular or it's a general question ?
2008-08-07 16:14 <gadaga> bechamel : general
2008-08-07 16:20 <CIA-54> tryton: rli roundup * #237/Exception: ('Error', 'Programming error: child_of on field "category" is not allowed!'): [new] Traceback (most recent call last): File "/trytond/netsvc.py", line 335, in run res = method(*msg[2:]) File "/trytond/web_service/obj ...
2008-08-07 16:32 <CIA-54> tryton: rli roundup * #236/KeyError: u'perm_unlink': I have installed the lastest version, and now it works. Thanks.
2008-08-07 16:33 <gadaga> bechamel: in ir_lang, why code For English is en_US and not en_EN?
2008-08-07 16:35 <bechamel> gadaga: good question, i don't know
2008-08-07 16:36 <gadaga> it can become a pb for me :p
2008-08-07 16:36 <bechamel> gadaga: why ?
2008-08-07 16:37 <gadaga> because is not the standard
2008-08-07 16:39 <bechamel> gadaga: for me the problem is that when i read "English" i tkink about uk, and that en_US should appear with "English (US)"
2008-08-07 16:39 <gadaga> http://fr.wikipedia.org/wiki/Liste_des_codes_ISO_639-1
2008-08-07 16:39 <gadaga> bechamel: for me US is united States
2008-08-07 16:40 <bechamel> gadaga: yes
2008-08-07 16:40 <bechamel> gadaga: and whe need to make the distinction between us and uk
2008-08-07 16:41 <gadaga> bechamel: i agree
2008-08-07 17:28 <bechamel> nicoe: for the odt files the templates are looking better when using text:placeholder
2008-08-07 17:29 <bechamel> nicoe: and what about constructions like: invoice.number or "Unknow" ?
2008-08-07 17:30 <nicoe> bechamel: you can always use them
2008-08-07 17:30 <bechamel> nicoe: it's possible to choose between text:placeholder and text:a ?
2008-08-07 17:30 <nicoe> bechamel: for the look this is just a matter of taste.
2008-08-07 17:31 <nicoe> right now no
2008-08-07 17:31 <nicoe> but it could be possible
2008-08-07 17:31 <bechamel> nicoe: this should be great
2008-08-07 17:32 <bechamel> nicoe: and for invoice.name or "Unknow" stuff ?
2008-08-07 17:33 <nicoe> it works without problem in the example I have a relatorio://(brol + truc)
2008-08-07 17:33 <nicoe> you could use relatorio://(invoice.number or 'Unknown'
2008-08-07 17:34 <bechamel> nicoe: ok
2008-08-07 17:36 <nicoe> But I fail to see how using placeholders is better looking than text:a, because I see it as a big plus of the text:a that they can look exactly as the outputted text
2008-08-07 17:37 <bechamel> nicoe: not always, has Gedd said it's difficult to track errors
2008-08-07 17:38 <bechamel> *as
2008-08-07 17:38 <nicoe> even if you use the code as the displayed text ?
2008-08-07 17:38 <gadaga> bechamel: I couldn't create a new database, i'm full update : http://pastebin.com/d6f15eee1
2008-08-07 17:44 -!- bechamel`(n=user@user-85-201-14-207.tvcablenet.be) has joined #tryton
2008-08-07 17:44 <gadaga> erf
2008-08-07 17:44 <gadaga> <gadaga> bechamel: I couldn't create a new database, i'm full update : http://pastebin.com/d6f15eee1
2008-08-07 17:44 <bechamel`> big storm here ..
2008-08-07 17:46 <bechamel`> gadaga: strange, did you do something unusual ?
2008-08-07 17:48 <gadaga> bechamel: no :(
2008-08-07 17:49 <gadaga> bechamel: can you email me a dump of a new database?
2008-08-07 17:49 <bechamel`> gadaga: and you are able to reproduce it ?
2008-08-07 17:50 <gadaga> bechamel: yes everytime :p
2008-08-07 17:51 <gadaga> bechamel: I've done relationship and product and i couldn't test it without a new database :(
2008-08-07 17:54 <bechamel`> gadaga: actually init_db in sql_db.py is reponsible for creating all basic table which are not created by the orm they are the first tables to be created, so it's suprising to see a "ir_model alreay exist" at this step
2008-08-07 17:55 <gadaga> bechamel: me to :(
2008-08-07 19:14 -!- kultviech(n=kultviec@p54974999.dip.t-dialin.net) has joined #tryton
2008-08-07 19:35 -!- kultviech(n=kultviec@p54974999.dip.t-dialin.net) has left #tryton
2008-08-07 19:36 -!- FWiesing(n=Wiesinge@194.208.185.12) has left #tryton
2008-08-07 19:53 <udono> nicoe: do you find time today for pulling your changes? so I can test tomorrow...
2008-08-07 19:54 <nicoe> I'll do it tonight.
2008-08-07 19:55 <nicoe> I will send you an email once it's ready.
2008-08-07 19:56 <udono> nicoe: no hurry... i just try tomorrow if I can pull the code, after this I create some more examples and send them back...
2008-08-07 19:57 <nicoe> ok np
2008-08-07 20:22 <udono> bechamel`: are you there
2008-08-07 20:23 <udono> bechamel`: where is the inheritance of the companys employees to the relationship partys? and I cant find where the notebook string "Services" on new employee is defined...
2008-08-07 20:25 <udono> bechamel`: my questions just depends on the views
2008-08-07 20:36 <udono> bechamel`: Aiii, I found it, so forget my last questions..
2008-08-07 21:17 -!- b52laptop(n=b52lapto@41.249.250.195) has joined #tryton
2008-08-07 21:17 <b52laptop> hi
2008-08-07 21:18 <Timitos> b52laptop: hi
2008-08-07 21:28 -!- nicoe(n=nicoe@ip-80-236-206-69.dsl.scarlet.be) has left #tryton
2008-08-07 21:37 -!- FWiesing(n=Wiesinge@194.208.185.12) has joined #tryton
2008-08-07 21:49 -!- kultviech(n=kultviec@p5B0D1CC9.dip0.t-ipconnect.de) has joined #tryton
2008-08-07 21:59 <bechamel`> udono: i'm back if you have other questions
2008-08-07 22:10 <udono> hi b52laptop
2008-08-07 22:10 <udono> hi bechamel`
2008-08-07 22:10 <udono> by all ;-) going sleep
2008-08-07 22:11 <b52laptop> hhhh
2008-08-07 22:11 <b52laptop> udono, good night
2008-08-07 22:11 <b52laptop> hi :d
2008-08-07 22:14 <bechamel`> udono: ok, bye

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