IRC logs of #tryton for Thursday, 2011-05-26

chat.freenode.net #tryton log beginning Thu May 26 00:00:02 CEST 2011
2011-05-26 00:06 -!- trifon(~trifon@p548C6F2C.dip.t-dialin.net) has joined #tryton
2011-05-26 01:18 -!- sharoon(~sharoon@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton
2011-05-26 01:20 <sharoon> cedk_: i was just thinking about what you said about the long transactions and the sequence
2011-05-26 01:21 <sharoon> cedk_: it will still not work for openerp http://bazaar.launchpad.net/~openerp/openobject-server/6.0/view/head:/bin/addons/base/ir/ir_sequence.py#L96
2011-05-26 01:21 <cedk_> sharoon: why?
2011-05-26 01:22 <sharoon> cedk_: because of the NOWAIT
2011-05-26 01:22 <sharoon> cedk_: see this test case https://bitbucket.org/openlabs/sequence-postgres/src/519cba18d85f/tests/test_sequence.py#cl-149
2011-05-26 01:24 <cedk_> sharoon: of course you can still have concurrent transaction
2011-05-26 01:24 <cedk_> sharoon: but this danger is always there
2011-05-26 01:24 <cedk_> sharoon: you can just reduce the probability but minimize the duration of transactions
2011-05-26 01:24 <sharoon> cedk_: not in the case of tryton because concurrent transaction will wait for the transaction with the lock to commit
2011-05-26 01:25 <sharoon> cedk_: in the case of openerp it does not wait but just fails
2011-05-26 01:25 <sharoon> cedk_: and they are happy about it and of late shows messages like "Could not complete Operation, but might succeeed if you try again"
2011-05-26 01:27 <cedk_> sharoon: no it will also fail on Tryton because of the serial transaction
2011-05-26 01:28 <sharoon> cedk_: got it
2011-05-26 01:29 <sharoon> cedk_: postgres documentation suggests that we should attempt a retry of the request in such a case... think its feasible ?
2011-05-26 01:29 <cedk_> sharoon: yes I already thought about having a loop in the dispatcher in case of concurrency error
2011-05-26 01:30 <sharoon> cedk_: having it in the dispatcher will still cause issues for application which access tryton as a module ?
2011-05-26 01:30 <cedk> sharoon: then they should manage themself
2011-05-26 01:31 <sharoon> cedk: maybe we can have it in the __exit__ clause of the transaction ?
2011-05-26 01:31 <sharoon> cedk: nope
2011-05-26 01:31 <sharoon> cedk: my idea work work, because there woul dbe no retry
2011-05-26 01:31 <cedk> sharoon: you don't know what to run in __exit__
2011-05-26 01:32 <sharoon> cedk: it can only work at the level of dispatcher since dispatcher can remember what was the call and the arguments
2011-05-26 01:32 <sharoon> cedk: it would be equivalent to starting from beginning
2011-05-26 01:32 <sharoon> cedk: is there an issue already about this case ?
2011-05-26 01:33 <sharoon> cedk: issue == roundup issue
2011-05-26 01:33 <cedk> sharoon: I don't think
2011-05-26 01:34 <cedk> sharoon: going to bed
2011-05-26 01:34 <sharoon> cedk: shall i report an issue an i can propose a decorator for the problem ?
2011-05-26 01:34 <sharoon> cedk: bye, good night
2011-05-26 02:12 -!- udono(~udono@ip-95-222-129-145.unitymediagroup.de) has joined #tryton
2011-05-26 03:21 -!- nicoe_(~nicoe@25.159-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2011-05-26 04:20 -!- effenberg(~chlu@pD9E9C52B.dip.t-dialin.net) has joined #tryton
2011-05-26 04:39 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2011-05-26 05:11 -!- alimon(~alimon@189.154.33.113) has joined #tryton
2011-05-26 05:19 -!- yangoon(~mathiasb@p549F38DE.dip.t-dialin.net) has joined #tryton
2011-05-26 05:21 -!- alimon(~alimon@189.154.33.113) has joined #tryton
2011-05-26 05:46 -!- alimon(~alimon@189.154.33.113) has joined #tryton
2011-05-26 05:55 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2011-05-26 06:09 -!- paepke(~paepke@gate.paepke.net) has joined #tryton
2011-05-26 06:10 -!- marc0s(~marc0s@unaffiliated/marc0s) has joined #tryton
2011-05-26 06:10 -!- tony_(~tony@116.247.126.74) has joined #tryton
2011-05-26 06:45 -!- nicoe(~nicoe@201.159-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2011-05-26 06:45 -!- cheche(cheche@46.25.80.67) has joined #tryton
2011-05-26 06:51 -!- vladimirek(~vladimire@bband-dyn166.178-41-220.t-com.sk) has joined #tryton
2011-05-26 07:03 -!- dba(~daniel@178.63.150.30) has joined #tryton
2011-05-26 07:46 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2011-05-26 08:22 -!- nicoe_(~nicoe@201.159-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2011-05-26 08:44 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2011-05-26 08:47 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2011-05-26 08:57 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton
2011-05-26 09:04 -!- elbenfreund(~elbenfreu@p54B94C95.dip.t-dialin.net) has joined #tryton
2011-05-26 09:48 -!- digitalsatori(~tony@116.247.126.74) has joined #tryton
2011-05-26 10:06 -!- okko(~okko@62-177-160-78.dsl.bbeyond.nl) has joined #tryton
2011-05-26 10:11 -!- mhi1(~mhi@pd95b104a.dip0.t-ipconnect.de) has joined #tryton
2011-05-26 10:11 -!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton
2011-05-26 10:22 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2011-05-26 10:54 -!- reichlich(~reichlich@p5793DEDA.dip.t-dialin.net) has joined #tryton
2011-05-26 10:58 -!- tshepang(~wena@dsl-185-70-35.dynamic.wa.co.za) has joined #tryton
2011-05-26 11:23 -!- elbenfreund(~elbenfreu@wlan2045.rz.uni-leipzig.de) has joined #tryton
2011-05-26 11:45 -!- hoRn(~jan@dslb-188-106-128-251.pools.arcor-ip.net) has joined #tryton
2011-05-26 11:45 <hoRn> hi all
2011-05-26 11:46 <tshepang> ello
2011-05-26 11:46 -!- helmor(~helmor@46.115.24.18) has joined #tryton
2011-05-26 11:48 <hoRn> I was playing arround with 'unoconv' in convert_pdf for the reports - 10 times faster than the oo-way
2011-05-26 11:49 <cedk> hoRn: have you links ?
2011-05-26 11:50 <hoRn> http://dag.wieers.com/home-made/unoconv/
2011-05-26 11:53 <hoRn> cedk: it's realy fast - i have a report with about 15 barcodes on it - my machine was going crazy ;)
2011-05-26 11:53 <hoRn> cedk: quick and dirty: http://pastie.org/1975433
2011-05-26 11:56 <hoRn> cedk: and it supports a lot of output-formats as well
2011-05-26 11:58 <cedk> hoRn: I will be happy to drop openoffice-python dependency
2011-05-26 11:58 <cedk> and see an implementation that will allow more format
2011-05-26 12:00 <hoRn> cedk: whats the licence of this unoconv - will take a look ...
2011-05-26 12:01 <cedk> hoRn: GPL-2
2011-05-26 12:01 -!- nicoe(~nicoe@ced.homedns.org) has joined #tryton
2011-05-26 12:02 <hoRn> cedk: looks promising
2011-05-26 12:07 <cedk> hoRn: could you create an issue about that
2011-05-26 12:07 <hoRn> cedk: yes
2011-05-26 12:13 <hoRn> cedk: in the tracker or in the list?
2011-05-26 12:13 <cedk> hoRn: I guess the best is on roundup and inform tryton-dev@
2011-05-26 12:14 <hoRn> cedk: ok
2011-05-26 12:22 -!- helmor(~helmor@2.209.54.25) has joined #tryton
2011-05-26 13:10 <cedk> ACTION review his own patches
2011-05-26 13:11 <cedk> http://codereview.tryton.org/35007/
2011-05-26 13:15 <tshepang> cedk, was wondering about that
2011-05-26 13:15 <tshepang> the patches
2011-05-26 13:18 <cedk> tshepang: ???
2011-05-26 13:24 -!- silverfox1971(~sysadmin0@94.232.28.78) has joined #tryton
2011-05-26 13:25 -!- silverfox1971(~sysadmin0@94.232.28.78) has left #tryton
2011-05-26 13:26 <tshepang> u do a lot of patches and submit them fro code review, and I often wonder if people r helping review them
2011-05-26 13:28 -!- silverfox1971(~sysadmin0@94.232.28.78) has joined #tryton
2011-05-26 13:29 -!- silverfox1971(~sysadmin0@94.232.28.78) has left #tryton
2011-05-26 13:32 -!- hoRn(~jan@dslb-188-106-128-251.pools.arcor-ip.net) has joined #tryton
2011-05-26 13:37 -!- enlightx_(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2011-05-26 13:38 -!- predatell(~predatell@85.198.132.141) has joined #tryton
2011-05-26 13:38 <tshepang> cedk, "But you can not have the same code running for Python 2 and Python 3 if I'm right"
2011-05-26 13:38 <tshepang> actually u can
2011-05-26 13:38 <tshepang> u'll just hav to do future imports
2011-05-26 13:39 <tshepang> and a bunch of try excepts
2011-05-26 13:45 <cedk> tshepang: we will use 2to3
2011-05-26 13:46 <tshepang> that's a cleaner approach
2011-05-26 13:47 <tshepang> it would be extra nice if the code is such that that's the only change that will be needed in order to port to Py3k
2011-05-26 13:47 <cedk> tshepang: we will work on that
2011-05-26 13:47 <tshepang> where 2to3 fails, there's still try except to the rescue
2011-05-26 13:47 <cedk> tshepang: it seems there is few py3 warbibg
2011-05-26 13:47 <tshepang> huh?
2011-05-26 13:49 <tshepang> cedk, warbibg?
2011-05-26 13:56 <udono> tshepang: typo for warning :-)
2011-05-26 13:56 <tshepang> oh
2011-05-26 13:57 -!- hoRn(~jan@dslb-188-106-128-251.pools.arcor-ip.net) has joined #tryton
2011-05-26 13:57 -!- okko(~okko@62.58.29.41) has joined #tryton
2011-05-26 13:58 <tshepang> do Tryton tests have full coverage?
2011-05-26 14:00 -!- elbenfreund(~elbenfreu@p54B94C95.dip.t-dialin.net) has joined #tryton
2011-05-26 14:02 <hoRn> seems there is a total #skype crash worldwide ;)
2011-05-26 14:04 <hoRn> MS had put some enhancements?
2011-05-26 14:07 <udono> tshepang: unfortunately not. But you can find tests here: http://hg2.tryton.org/trytond/file/0fb7dff0e74b/trytond/tests and module specific tests in each module.
2011-05-26 14:09 <tshepang> udono, thanks, but I actually got a checkout locally
2011-05-26 14:10 <tshepang> I asked partly because a Py3k migration really ought to have excellent coverage, especially for non-trivial code like that of Tryton
2011-05-26 14:10 -!- silverfox1971(~sysadmin0@94.232.28.78) has joined #tryton
2011-05-26 14:10 <tshepang> else that there would be surprising failures all over the place
2011-05-26 14:10 -!- silverfox1971(~sysadmin0@94.232.28.78) has left #tryton
2011-05-26 14:10 <tshepang> many of these r non-obvious
2011-05-26 14:11 <tshepang> coverage doesn't hav to be complete
2011-05-26 14:11 <tshepang> some stuff is hard to test
2011-05-26 14:11 <tshepang> ...with unit tests
2011-05-26 14:16 <udono> tshepang: ok, understand.
2011-05-26 14:20 <cedk> hoRn: use ekiga
2011-05-26 14:20 <hoRn> rm ~/.Skype/shared.xml
2011-05-26 14:21 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2011-05-26 14:42 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2011-05-26 14:49 -!- silverfox1971(~sysadmin0@94.232.28.78) has joined #tryton
2011-05-26 14:49 -!- silverfox1971(~sysadmin0@94.232.28.78) has left #tryton
2011-05-26 15:09 -!- silverfox1971(~sysadmin0@94.232.28.78) has joined #tryton
2011-05-26 15:09 -!- silverfox1971(~sysadmin0@94.232.28.78) has left #tryton
2011-05-26 15:53 -!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton
2011-05-26 16:17 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton
2011-05-26 16:17 -!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton
2011-05-26 16:20 -!- zodman(~andres-va@foresight/developer/zodman) has joined #tryton
2011-05-26 16:26 -!- okko(~okko@62.58.29.41) has joined #tryton
2011-05-26 16:40 <hoRn> if I start to add a new One2Many from widget - is there a possibility to get the information which is the active_id from which the dialog was opened?
2011-05-26 16:41 <hoRn> need some informations about the state of the data to which I add the One2Many
2011-05-26 16:54 <cedk> hoRn: with "_parent_<field name>.<field name>"
2011-05-26 16:54 <cedk> hoRn: look at the SaleLine
2011-05-26 16:55 <hoRn> cedk: ok - thank you
2011-05-26 16:56 <hoRn> cedk: was thinking if I have a deja vu or questioned this a couple of week ago ;)
2011-05-26 16:57 <hoRn> cedk: cool - easy access to this information :-D
2011-05-26 17:06 <sharoon> cedk: ping
2011-05-26 17:07 <cedk> sharoon: pong
2011-05-26 17:07 <sharoon> cedk: we discussed about the dispatcher level handling of errors when serialised cursors have transaction issues
2011-05-26 17:08 <sharoon> cedk: any test written for the dispatcher will cause a commit - is that acceptable for the test suite ?
2011-05-26 17:09 <cedk> sharoon: why not
2011-05-26 17:09 <sharoon> cedk https://gist.github.com/993335
2011-05-26 17:11 <sharoon> cedk: test0020 blows up with SQLite ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 140735076813984 and this is thread id 4373352448
2011-05-26 17:12 <sharoon> cedk: this is the full traceback http://paste.pocoo.org/show/395639/
2011-05-26 17:15 <cedk> sharoon: it is strange
2011-05-26 17:17 <sharoon> cedk: do you think its an issue ? and it is a problem that none of our test suites are infact testing for concurrent execution (which is the real world scenario)
2011-05-26 17:18 <cedk> sharoon: I understand the issue
2011-05-26 17:18 <sharoon> cedk: well i dont knwo if that is what unit test is supposed to do or is it some other level of tests
2011-05-26 17:18 <sharoon> cedk: ok
2011-05-26 17:18 <cedk> sharoon: it is because we used in unittest a memory Sqlite database
2011-05-26 17:19 <cedk> sharoon: and memory sqlite database can not be shared throught threads
2011-05-26 17:19 <sharoon> cedk: got it!
2011-05-26 17:19 <cedk> sharoon: so Database return always the same instance for :memory:
2011-05-26 17:19 <cedk> sharoon: you should use an other database name for this test
2011-05-26 17:19 <sharoon> cedk got it
2011-05-26 17:52 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2011-05-26 17:57 -!- meanmicio(bec3320f@gateway/web/freenode/ip.190.195.50.15) has joined #tryton
2011-05-26 17:58 <meanmicio> Hello... just checking in, while working on MEDICAL in Tryton
2011-05-26 17:59 <nicoe> meanmicio: hello luis
2011-05-26 17:59 <meanmicio> hi nicolas
2011-05-26 17:59 <nicoe> meanmicio: just a note, the vim command I sent you yesterday left the ',' at the end of the line
2011-05-26 18:00 <meanmicio> ? never got it... let me check
2011-05-26 18:01 <nicoe> meanmicio: I sent it yesterday via twitter
2011-05-26 18:02 <meanmicio> Ah, ok. I use identi.ca most of the time. The messages show on twitter via identi.ca , but rarely I log in.. let me check
2011-05-26 18:03 <nicoe> If you are an identica use so am I ! what is your id there ?
2011-05-26 18:04 <meanmicio> meanmicio
2011-05-26 18:05 <meanmicio> great
2011-05-26 18:06 <cedk> meanmicio: ready for some remarks on medical :-)
2011-05-26 18:06 <meanmicio> yes :)
2011-05-26 18:07 <cedk> meanmicio: it is good to follow PEP8
2011-05-26 18:07 <cedk> meanmicio: like CamelCase for class
2011-05-26 18:07 <cedk> meanmicio: no space func and (
2011-05-26 18:08 <cedk> meanmicio: 80cols
2011-05-26 18:08 <cedk> next point
2011-05-26 18:08 <meanmicio> ok
2011-05-26 18:08 <cedk> _inherit doesn't exist in Tryton
2011-05-26 18:09 <cedk> just use the same _name
2011-05-26 18:10 <meanmicio> ok. It does in the views though, right ?
2011-05-26 18:10 <cedk> meanmicio: you can drop size on Char field in most cases
2011-05-26 18:11 <cedk> meanmicio: it does what?
2011-05-26 18:11 <meanmicio> inherit views
2011-05-26 18:12 <meanmicio> I used it already
2011-05-26 18:12 <cedk> meanmicio: yes did not yet check XML
2011-05-26 18:12 <meanmicio> ok
2011-05-26 18:13 <meanmicio> works just fine
2011-05-26 18:13 <cedk> meanmicio: also I'm not sure you use 4 spaces for indent
2011-05-26 18:13 <meanmicio> I'm using tabs
2011-05-26 18:13 <cedk> meanmicio: ohohoh
2011-05-26 18:14 <nicoe> meanmicio: ouch .... tabs instead of spaces (let's not start a flamewar)
2011-05-26 18:14 <meanmicio> :)
2011-05-26 18:15 <cedk> also we try to avoid putting _id on Many2One fields
2011-05-26 18:15 <cedk> because when you make a BrowseRecord, it has no meaning
2011-05-26 18:15 <meanmicio> ok.
2011-05-26 18:16 <cedk> next topic: the party.address
2011-05-26 18:16 <meanmicio> yes
2011-05-26 18:16 <cedk> I saw that you add relationship on address
2011-05-26 18:17 <meanmicio> keep on talking... I'm putting something to eat
2011-05-26 18:17 <meanmicio> brb
2011-05-26 18:17 <cedk> I'm not sure this is the right place
2011-05-26 18:19 <cedk> meanmicio: the address in Tryton is a real address and nothing more
2011-05-26 18:19 <cedk> in OE, I know that it is often used for person
2011-05-26 18:22 <meanmicio> ok, then probably we sould use the contact information on the contact mechanisms
2011-05-26 18:23 <meanmicio> Relative : information
2011-05-26 18:23 <meanmicio> Patient relative, I mean
2011-05-26 18:24 <meanmicio> But is good to have the address of the relatives there
2011-05-26 18:24 <cedk> meanmicio: I don't know because I don't understand what is "Patine relative"
2011-05-26 18:24 <meanmicio> his or her friends and family members
2011-05-26 18:26 <cedk> meanmicio: ok I think it should be stored on the Party
2011-05-26 18:26 <cedk> this makes me think about talk we had for a module called party_relation
2011-05-26 18:28 <cedk> but the module is not yet developped
2011-05-26 18:29 <meanmicio> ok.
2011-05-26 18:30 <cedk> meanmicio: indeed the difficulty of this relation between party is to manage the reverse one
2011-05-26 18:30 <cedk> if I'm the friend of some one, he is also my friend
2011-05-26 18:30 <cedk> but their is some relation more complex
2011-05-26 18:31 <cedk> if I'm the soon of some one, he is my father
2011-05-26 18:31 <meanmicio> Yes. I have the family object, which can integrate it in the future...
2011-05-26 18:31 <cedk> meanmicio: link?
2011-05-26 18:31 <meanmicio> Since the idea is not only to know who is relative, but who lives in that household
2011-05-26 18:32 <meanmicio> Not only for contact information, but for disease prevention and epidemiology
2011-05-26 18:32 <cedk> meanmicio: ok so it is more to share the same party.address between parties
2011-05-26 18:33 <meanmicio> But the main purpose in the address view today is to have a quick list of people that can be reached if need to be contacted. The family object is more complex
2011-05-26 18:33 <meanmicio> Needs to be reviewed though
2011-05-26 18:35 <meanmicio> Have to leave to work now. I will review and fit to the PEP8 guidelines the current code and all the following porting .
2011-05-26 18:36 <cedk> meanmicio: ok, I will think about the relation issue
2011-05-26 18:36 <meanmicio> Great. Will keep the IRC window open more often
2011-05-26 18:37 <cedk> meanmicio: we are most of the time here
2011-05-26 18:37 <meanmicio> very useful !
2011-05-26 18:37 <cedk> meanmicio: and we talk
2011-05-26 18:37 <cedk> meanmicio: it is not like somewhere else that I will not name :-)
2011-05-26 18:37 -!- enlightx(~enlightx@dynamic-adsl-94-34-195-161.clienti.tiscali.it) has joined #tryton
2011-05-26 18:37 <meanmicio> ;-)
2011-05-26 18:38 <meanmicio> BTW, quite fast uploading of medical procedures ! impressive. Great performance and little memory consumption ! Great job.
2011-05-26 18:39 <meanmicio> bbl
2011-05-26 19:04 -!- nicoe(~nicoe@201.159-247-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2011-05-26 19:16 -!- elbenfreund(~elbenfreu@2001:6f8:1c1b:1a18:20e:35ff:fee8:3ccd) has joined #tryton
2011-05-26 19:37 -!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton
2011-05-26 20:13 -!- sharoon(~sharoon@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton
2011-05-26 20:21 -!- plantian(~ian@c-67-169-72-36.hsd1.ca.comcast.net) has joined #tryton
2011-05-26 20:22 <plantian> Hi, I'm seeing these errors messages when building the docs: http://paste.pocoo.org/show/395722/ it seems that maybe the syntax is :meth: instead of :method:. Do other people see these errors? It might just be my sphinx is too new.
2011-05-26 20:38 -!- saxa(~sasa@host242-95-static.223-217-b.business.telecomitalia.it) has joined #tryton
2011-05-26 20:45 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2011-05-26 20:52 -!- blast_hardcheese(~blast_har@cpe-98-154-59-208.socal.res.rr.com) has joined #tryton
2011-05-26 21:48 -!- vladimirek(~vladimire@bband-dyn166.178-41-220.t-com.sk) has joined #tryton
2011-05-26 21:56 -!- gremly(~gremly@200.106.202.91) has joined #tryton
2011-05-26 22:11 <hoRn> every 2 weeks I get dumb with pyson ;( - could be my brain get's to old
2011-05-26 22:11 -!- plantian1(~ian@173-167-122-145-sfba.hfc.comcastbusiness.net) has joined #tryton
2011-05-26 22:19 -!- okko(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2011-05-26 22:23 <hoRn> got it - everytimes my model is a mess ;(
2011-05-26 22:47 -!- alimon(~alimon@187.156.38.138) has joined #tryton

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