IRC logs of #tryton for Thursday, 2009-03-19

chat.freenode.net #tryton log beginning Thu Mar 19 00:00:01 CET 2009
cedkTimitos: what is the issue?00:00
Timitosit is not working00:01
Timitoscedk: the states = invisible part00:02
Timitosin the end it looks like this: {'invisible': '1 not in groups_option'} groups_option is many2many field and it is inherited00:03
Timitosand i don´t know why it does not work00:03
Timitosif i replace it by: {'invisible': True}. everything is working as planned. so i do not understand why this statement is not evaluated correctly00:05
bechamelTimitos: and group_option is available on the view ?00:07
Timitosbechamel: no. this is why i put the depends parameter. is this not correct?00:08
cedkTimitos: have you any log in the client00:09
Timitoscedk: yes. sorry. i did not expected that there: ERROR:record:Unable to eval 2 not in groups_option for field option_2 (record: 3@product.product)00:12
cedkTimitos: this is because the groups_option has this form in the client evaluation: [('set', [id, id])]00:15
cedkTimitos: oups sorry, this is false00:16
Timitosits a difficult topic :-)00:16
Timitoscedk: maybe the problem is that "1" is not a field but a normal value00:17
cedkTimitos: could you print the exception in line 127 of tryton/gui/window/view_form/model/field.py00:17
Timitoscedk: http://paste.pocoo.org/show/108573/00:22
Timitoscedk: i am starting to get an idea00:24
cedkTimitos: show me how you define the fields00:26
Timitoscedk: i think this is because the field comes from the base object i inherit from00:26
Timitoscedk: http://paste.pocoo.org/show/108577/00:27
Timitosoh. i should perhaps also paste the read function for this00:28
Timitoshttp://paste.pocoo.org/show/108578/00:29
cedkTimitos: no, the issue happen because the depends is not define on the fields00:30
cedkTimitos: you add it to the fields_get function but it is not the right place00:31
cedkTimitos: you must modify all the fields to add the depends00:31
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1638:ad48af0e7b62 trytond/trytond/model/modelsql.py: Add missing super call in create of ModelSQL00:31
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1639:4cc1fc6223a4 trytond/trytond/ir/default.py: Remove unused code00:32
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1640:52fd6f20f73b trytond/trytond/ir/default.py: Add Cache to get_default00:32
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1641:4832c82dc0ea trytond/trytond/ir/property.py: Add _set_values to allow easy override of set property00:32
Timitoscedk: all the fields? how?00:32
cedkTimitos: in the __init__00:32
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 133:d523b3c012bf company/company.py: Use _set_values instead of override set property00:33
Timitosso i need a __init__ for the class Product here?00:33
cedkTimitos: yes like http://hg.tryton.org/hgwebdir.cgi/modules/project/file/23a6c6e66b63/work.py#l1300:33
cedkvengfulsquirrel: I just push some speed improvement00:33
cedkvengfulsquirrel: but there is still one thing that I need to fix00:34
cedkvengfulsquirrel: but I need to think about it before00:34
Timitoscedk: but i do not see anything about depends there? or perhaps i need to understand better what is happening there00:35
vengfulsquirrelcedk: Thanks I'll try it out.00:36
cedkTimitos: I don't find an example with depends, but it is with context which works the same00:38
Timitoscedk: thx for your help. i will try to understand. i think i have now a better idea about my problem.00:39
cedkgood night00:41
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has left #tryton01:22
-!- juanfer(n=juanfer@190.24.186.155) has joined #tryton02:39
-!- vengfulsquirrel(n=ian@c-71-202-125-182.hsd1.ca.comcast.net) has joined #tryton02:53
-!- ikks(i=igor@186.97.1.120) has joined #tryton03:44
-!- yangoon(n=mathiasb@p549F5754.dip.t-dialin.net) has joined #tryton05:19
-!- Timitos(n=Timitos@88.217.184.172) has joined #tryton07:26
-!- Gedd(n=ged@77.109.113.71) has joined #tryton08:05
-!- cristi_an(i=5978d3ce@gateway/web/ajax/mibbit.com/x-ddd9fd27e55976f0) has joined #tryton08:06
cristi_anudono1: do you understand wht unit test from trytond do ?08:08
cristi_anbtw,hi08:08
udono1cristi_an: hi, srry, no time now, maybe later in the evening...08:14
-!- johbo(n=joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton08:15
-!- racke(n=racke@a89-183-18-108.net-htp.de) has joined #tryton08:15
cristi_ank08:47
-!- racke(n=racke@a89-183-18-108.net-htp.de) has left #tryton08:47
-!- gadaga(n=gadaga@pic33-2-88-163-57-149.fbx.proxad.net) has joined #tryton09:01
-!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton09:10
cristi_ancedk: morning...i went deep in code...but i was not able to sole that pb :( with unit tests09:15
cristi_ani tried to debug...but there were tooo many info's for me  escially i did not understood what are the values for left and right09:16
cristi_ansince in the  unit test you only inserted ... like 0,0,0 name or 0.0 1 name09:16
cristi_anthen i discovers some method in create09:17
cristi_ancalled _update....09:17
cristi_antree or so09:17
cristi_anand i was blocked :)09:17
cedkcristi_an: here an explanation of mptt: http://www.sitepoint.com/article/hierarchical-data-database/2/09:18
cedkcristi_an: but the strage thing is that with the same code, it doesn't fail on my host nor udono's host09:19
cristi_anyes...,that is why i want to knwo ,otherwise i did not have paied attention to it09:19
cedkcan everybody run the unittest script under tests/test_tryton.py ?09:19
cristi_anlike in Murphys laws ...i will be the only one...tha has failed tests :)09:20
cedkcristi_an: could you give the python, postgresql, psycopg version09:20
cedkcristi_an: and linux version and host processor09:20
cristi_anis posible to let you access my computer09:21
cristi_an:)09:22
cristi_an?09:22
cedkcristi_an: if you want09:24
cristi_anthe problem is ? do you have time and do you want ?09:24
-!- paola(n=paola@host-84-222-102-91.cust-adsl.tiscali.it) has joined #tryton09:25
cedkcristi_an: let's wait to see if others have the same issue09:26
cedkcristi_an: could you give already the info I ask above09:26
cristi_ansure i swithc to linux09:27
cristi_anback in 2 min09:27
-!- mib_uf6xx11i(i=5978d3ce@gateway/web/ajax/mibbit.com/x-7c7d1153a80de330) has joined #tryton09:31
-!- mib_uf6xx11i(i=5978d3ce@gateway/web/ajax/mibbit.com/x-7c7d1153a80de330) has left #tryton09:32
-!- mib_uf6xx11i(i=5978d3ce@gateway/web/ajax/mibbit.com/x-7c7d1153a80de330) has joined #tryton09:32
mib_uf6xx11iback09:32
-!- cristi_an(i=5978d3ce@gateway/web/ajax/mibbit.com/x-e3b032e288f87ca1) has joined #tryton09:33
cristi_annow i am back :)09:33
cristi_anhttp://mibbit.com/pb/vu7H6M09:35
cristi_anwhat other infos are needed09:35
cristi_an?09:35
-!- bechamel(n=user@85.201.74.27) has joined #tryton09:37
cedkcristi_an: linux, postgresql, psycopg, processor09:38
cristi_anlinux is ubunu 8.0409:38
cristi_anprocessor intel quad09:39
cristi_an"python-psycopg2 is already the newest version."09:40
cristi_anhow can i found out version ?09:40
cristi_anon psycopg and postgress09:40
cristi_an?09:40
cedkcristi_an: psql --version09:41
cristi_anpsql (PostgreSQL) 8.3.609:41
cedkcristi_an: python -c "import psycopg2; print psycopg2.__version__"09:42
cristi_an2.0.6 (dec mx dt ext pq309:43
udono1cedk: which database version you use?09:47
-!- enlightx(n=enlightx@host198-42-static.85-94-b.business.telecomitalia.it) has joined #tryton09:48
cristi_andid anybody had failed tests like i have ?09:58
-!- paola(n=paola@host-84-222-102-91.cust-adsl.tiscali.it) has joined #tryton10:02
-!- enlightx(n=enlightx@host198-42-static.85-94-b.business.telecomitalia.it) has joined #tryton10:05
cedkI propose that everyone says if the unittest works or not on his desktop10:06
cedkIt works for me10:06
cristi_anpeople are not courious , maybe ...:)10:08
cristi_anfor me it does not10:08
cristi_anfor udono1  works10:10
udono1cedk: which postgres version do you use?10:11
Timitoscristi_an: what is your error?10:12
bechamelhere there is a problem with the mptt test10:13
Timitosme too10:13
udono1It could be a problem with >8.3 we had this in the past, you remember, long lists and a limit exceeds10:13
Timitoshttp://paste.pocoo.org/show/108613/10:13
udono1which postgres versions do you have bechamel Timitos?10:13
cedkTimitos: you must have the server running10:14
bechamel8.3.510:14
Timitoscedk: ok. sorry :-)10:14
udono1Timitos: I guess it works on yours...10:14
cristi_anhttp://mibbit.com/pb/Ppn6uf10:15
Timitoscedk: http://paste.pocoo.org/show/108615/10:15
cristi_anTimitos:10:16
cristi_anYOU AR THE MAN10:16
cristi_anso i am not the only one10:16
udono1Timitos: which postgres version you use? psql --version10:18
Timitosudono1: psql (PostgreSQL) 8.2.1110:18
udono1Timitos: thanks10:18
udono1What about cedk? postgres version?10:19
cedk8.0.1510:19
cristi_anudono1: you ?10:19
cristi_anbechamel: for you works ?10:20
udono1cristi_an: postgres 8.0.1510:20
bechamelcristi_an: as I said I also have the error10:20
cristi_anyou have that as well ,sorry10:20
cristi_andid not noticed10:20
udono1so it could be a postgres issue > 8.010:21
cristi_anbwell it is a postgress issue then10:21
cristi_anwonder what that could be10:21
udono1could be a postgres issue ...10:21
cedkI think I have found the issue10:35
cedkIt is in the unittest10:36
cristi_aninteresting ...10:39
-!- simahawk(n=simao@host198-42-static.85-94-b.business.telecomitalia.it) has joined #tryton10:39
-!- simahawk(n=simao@host198-42-static.85-94-b.business.telecomitalia.it) has left #tryton10:40
cedkthose who have the test fail can try with this patch: http://dpaste.com/16397/10:43
-!- nicoe(n=nicoe@ip-80-236-226-142.dsl.scarlet.be) has joined #tryton10:44
cristi_anbut why for some configurations worked and in other no ?10:44
cristi_ani will test now again...10:44
cedkI suppose it is a different behavior of postgresql10:45
cristi_ansoryy for asking but in what sense ?10:45
cedkin 1.2, we remove the order clause in read because it was resource consuming and not useful for major case10:45
cedkso it seems that the order in 8.0.15 of the record read was kept but on 8.3.5 it was not10:46
bechamelcristi_an: the problem is that the test case doesn't read records in the right order, so this mean that different version of postgres return "unordered" result in different orders10:46
cedknicoe: http://linuxfr.org/comments/983641.html#98364110:47
cristi_ani used the dev script to get all src again10:47
cristi_anbut i still got the problem10:48
cedkcristi_an: I don't push yet the fix10:48
cristi_anahhhh10:48
cedkbechamel: did you test the patch?10:48
nicoecedk: gagné !10:48
bechamelcedk: no i missed your comment10:48
cedkbechamel: http://dpaste.com/16397/10:49
bechamelcedk: i tried with [('sequence', 'ASC')] on the search but it didn't work, let's try10:50
yangooncedk: unittest without patch: http://paste.pocoo.org/show/108618/10:51
yangoonwill now test with patch10:51
bechamelit seems to work10:51
bechamelyes10:51
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1642:fcffb7f1256c trytond/trytond/tests/test_tryton.py: Fix CheckTree for new non-sorted read result10:54
cedkcristi_an: you can test now10:56
cristi_anok.10:56
cristi_anit's ok now but reporder test and reparent take quite long more then 1 min to execute11:00
cristi_anis that how is suposed to be11:00
udono1cristi_an: yes, the complete test runs 5 minutes on my machine11:00
cedkcristi_an: yes, it makes a lot of changes to test the algo11:00
cristi_anjust for my couriousity ..shortly what was the pb11:01
cedkthe more it is long, the more it tests :-)11:01
cristi_anRan 7 tests in 91.868s11:01
cristi_anudono1: what machine do you have ?11:01
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1643:c6f6401a62a5 trytond/trytond/model/ (model.py modelsql.py): Add with_rec_name option to default_get to improve creation of records11:02
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 399:47ae87dc179f account/move.py: Add with_rec_name option to default_get11:03
bechamelcristi_an: and whats your machine ? here tests took 125s11:03
cristi_ansome custome made ...:) intel quad + 2GB mem11:04
cristi_anno real brand...just bought each piece..and putted together11:04
Timitosit seems that i have an issue: Ran 7 tests in 700.248s11:05
udono1Timitos: looser :-P11:05
cristi_an:D11:05
cristi_anwhat computer do you have ?11:05
Timitosudono1: i do not understand it is a quite new machine. core 2 duo + 4GB ram11:06
cristi_anit si not a matter of hard disk as well11:06
cristi_ansince it is about readiend from disk ..???11:06
Timitosperhaps11:06
cristi_ancedk: what this uniot test do practically ?11:11
cedkcristi_an: it create a database, install tests module and run some tests11:12
cristi_an:)11:12
cristi_anreorder test i am courious...11:12
cristi_anfirst 4 test i understood...11:13
cristi_annew record :) Ran 7 tests in 91.319s11:13
cedkcristi_an: reorder change the sequence field of records11:15
cristi_ank. thx.11:16
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 172:5dbfa6a45692 stock_supply/purchase_request.py: Fix get_rec_name on purchase.request11:17
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 506:d34adc99d4e8 stock/de_DE.csv: Update translation for de_DE11:28
CIA-10tryton: Mathias Behrle <mathiasb@behrle.dyndns.org> default * 507:71c01088d986 stock/: merge11:28
CIA-10tryton: Timitos roundup * #878/problem when creating record and setting inherited record manually: [new] i am working with product.template and product.product. i created a new view: <record model="ir.ui.view" id="product_variant_view_form"> ...11:29
-!- enlightx(n=enlightx@host198-42-static.85-94-b.business.telecomitalia.it) has joined #tryton11:43
-!- Gedd(n=ged@ip-80-236-226-142.dsl.scarlet.be) has joined #tryton11:43
-!- cristi_an(i=5978d3ce@gateway/web/ajax/mibbit.com/x-2a75c33e3f1852e8) has joined #tryton11:55
cristi_anTimitos: did you foind out why it tooks so long to u ?11:58
Timitoscristi_an: no time for that11:58
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1644:5fb32769f192 trytond/trytond/res/ (group.py ir.py user.py):12:02
CIA-10tryton: Add cache on get_preferences of res.user12:02
CIA-10tryton: Add _get_preferences to allow better performence when extending preferences12:02
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 134:f274ad3ad21d company/company.py: Use _get_preferences instead of get_preferences12:03
-!- cristi_an(i=5978d3ce@gateway/web/ajax/mibbit.com/x-3bd28bc2ff7ee0d6) has joined #tryton12:26
-!- paola(n=paola@host-84-222-102-91.cust-adsl.tiscali.it) has joined #tryton12:38
CIA-10tryton: ced roundup * #878/problem when creating record and setting inherited record manually: [need-eg] I don't understand. Please add the code of product_variant/product.py12:52
-!- sharkcz(n=dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton13:10
cristi_anok ,slowly and with small steps i undestand things....but those constraints are describes somewhere....13:34
cristi_an?13:34
cristi_antheir name are quite self explanatory but where are defined ?13:34
cristi_anto know the possibilities i have when i define a model13:35
-!- ikks(n=igor@190.144.69.234) has joined #tryton13:47
cedkcristi_an: grep in trytond/model/13:54
-!- igor__(i=igor@190.102.218.8) has joined #tryton14:13
udono1hi all, somone knows how to overwrite a menuentry from another module?14:27
udono1I try it like this: http://paste.pocoo.org/show/108644/ from another module, but it won't work14:28
CIA-10tryton: C?dric Krier <ced@b2ck.com> default * 1645:02f4793dba56 trytond/trytond/model/model.py: Add default value False for boolean14:29
bechameludono1: iirc you have to prefix the id with the name of the moduel your menuitem is defined14:29
udono1bechamel: yes, that it is, thanks!14:30
-!- igor__(i=igor@190.102.219.210) has joined #tryton14:40
cristi_ancedk: found iot14:40
-!- cristi_an(i=5978d3ce@gateway/web/ajax/mibbit.com/x-970923468e3f50a5) has joined #tryton15:57
-!- juanfer(n=juanfer@190.144.69.234) has joined #tryton17:40
-!- cristi_an(i=5978d3ce@gateway/web/ajax/mibbit.com/x-ded903aaee58daa5) has joined #tryton18:20
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 1646:c3678d662478 trytond/trytond/ (ir/ui/menu.py ir/ui/view.py tests/mptt.py webdav/webdav.py): Typo: childs > children19:26
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 400:90e6e655928c account/account.py: Typo: childs > children19:30
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 64:316f35b73238 analytic_account/account.py: Typo: childs > children19:36
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 242:b5048722ffb0 party/category.py: Typo: childs > children19:45
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 401:f70ee6b322d2 account/tax.py: Typo: childs > children19:51
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 134:d5e37413d424 product/category.py: Typo: childs > children19:58
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 135:71e29c2ba6c4 product/: Merge19:58
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 65:ecd3bf0e36e6 timesheet/work.py: Typo: childs > children20:00
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 135:ca8578c7d721 company/company.py: Typo: childs > children20:04
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 508:21a68454617b stock/location.py: Typo: childs > children20:09
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 509:cdf162ca4377 stock/: merge20:09
-!- paola(n=paola@host-84-222-102-91.cust-adsl.tiscali.it) has joined #tryton20:15
-!- yangoon(n=mathiasb@p549F5754.dip.t-dialin.net) has joined #tryton20:22
-!- paola_(n=paola@host-84-222-102-91.cust-adsl.tiscali.it) has joined #tryton20:57
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 286:6c19f11a81df account_invoice/party.xml: Added relate button from party to invoice21:11
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 287:0486ebf00b82 account_invoice/: Merge21:11
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 263:b72f869512fc purchase/ (__tryton__.py party.xml): Added relate button from party to purchase21:12
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 142:b2817cd692e9 sale/ (__tryton__.py party.xml): Added relate button from party to sale21:13
cristi_anbechamel: you are very productive in the late shift :)21:13
bechamelcristi_an: yeah I'm a night bird :)21:15
cristi_an;)21:16
cristi_ani start to enjoy coding...in python...21:17
cristi_anbut i miss very much things like ...find references from java21:18
cristi_anthere you clicked on a method and you had all method calls of that21:18
cristi_anstrong typed language21:18
bechamelcristi_an: you can always use help in the python shell, it's pretty usefull21:19
cristi_anhelp in what sens to type help ?21:20
cristi_anwhat ide you use ?21:21
bechamelcristi_an: emacs21:21
cristi_anthat is hardcore ...! :)21:21
bechamelcristi_an: and i use emacs also as an irc client :)21:21
cristi_anthat is evil :)21:21
cristi_anand palying tetris21:22
cristi_ani knwo it is powerfull but i have no clue how to use it...21:22
bechamelcristi_an: for the python help: open a shell, type "python" and then you can test any code in it21:22
cristi_ani know that :)21:22
cristi_anthx21:22
bechameland then you can type "help(1)" for example21:23
cristi_anbut i was saying about references...21:23
bechamelbut of course is not integrated with any ide21:23
cristi_anemacs has autocomplete ?21:25
bechamelcristi_an: yes it autocomplete on all the word of all opened files, but it doesn't care about syntax or anything, but it's helpful imo21:30
-!- enlightx(n=enlightx@host-84-220-84-215.cust-adsl.tiscali.it) has joined #tryton21:39
bechamelcristi_an: http://xkcd.com/378/21:40
cristi_an:D21:46
cristi_anfunny :)21:46
cristi_anbechamel: if u do not care about synthax use a simple text editor...21:46
bechamelcristi_an: the autocompletion doesn't care about synthax, but color and code indentation does21:48
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 264:c8dea43ba6ff purchase/purchase.xml: Added relate buttons from purchase to packing and invoice22:27
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 143:9c358bff77be sale/sale.xml: Added relate buttons from sale to packing and invoice22:27
CIA-10tryton: Bertrand Chenal <bch@b2ck.com> default * 510:d5632eaabc9b stock/ (__tryton__.py party.xml): Added relate buttons from party to packings22:38
-!- bechamel(n=user@85.201.74.27) has left #tryton23:49
-!- simahawk(n=simao@host-84-222-60-220.cust-adsl.tiscali.it) has joined #tryton23:59

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!