IRC logs of #tryton for Friday, 2010-06-04

chat.freenode.net #tryton log beginning Fri Jun 4 00:00:01 CEST 2010
-!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton01:17
-!- digitalsatori(~tony@116.233.249.192) has joined #tryton03:22
-!- woakas(~woakas@190.26.105.211) has joined #tryton03:36
-!- juanfer(~juanfer@190.26.146.165) has joined #tryton04:44
-!- yangoon(~mathiasb@p549F7458.dip.t-dialin.net) has joined #tryton05:18
-!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has left #tryton07:32
-!- eLBati(~elbati@94.160.33.123) has joined #tryton07:53
-!- sharkcz(~dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton08:06
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton08:27
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:10
-!- mr_amit(~amit@117.254.25.154) has joined #tryton09:14
-!- Red15(~red15@unaffiliated/red15) has joined #tryton09:20
-!- nicoe(~nicoe@91.179.95.215) has joined #tryton09:34
-!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton09:48
-!- mr_amit(~amit@117.254.25.154) has left #tryton09:48
-!- paepke(~paepke@p4FEB601E.dip.t-dialin.net) has joined #tryton09:55
-!- mr_amit(~amit@117.254.25.154) has joined #tryton10:00
-!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has joined #tryton10:23
cedkbechamel: ok, I will make _CONFIG a threaded object10:27
cedkbechamel: and I will store _CONFIG on each Model10:27
bechamelcedk: what about my suggestion ? ie define an implicit class that will be use by default (so the api can stay the same) but allow user to explicitly use it10:29
bechamellike env = proteus.Environement()10:29
bechamelthen env.set_tryton(..) and env.Model(...), etc10:29
bechamellike that no need to use a threaded object (which may be slower)10:30
cedkbechamel: I don't like10:33
bechamelbut it will work in multi-threaded environement and it will work for shell usage when one want to query several server of one server with several client10:36
bechamel.. and it does not change the api10:37
cedkit breaks stuff10:37
cedkrepr will no more work10:38
bechamellike ?10:38
cedkI don't how you will pas the env to the Model class10:38
-!- varun_OL(~7ab0328f@gateway/web/freenode/x-kkukaihadunicowe) has joined #tryton10:38
cedkand it makes writing code more complicate10:38
bechamelmore complicate > just a little10:41
-!- shalabh_OL(~7ab0328f@gateway/web/freenode/x-olfjvobcvqqjszfe) has joined #tryton10:44
-!- shalabh_OL(~7ab0328f@gateway/web/freenode/x-olfjvobcvqqjszfe) has left #tryton10:46
-!- sharoon_(~82583342@gateway/web/freenode/x-okstkgbijeobrngq) has joined #tryton10:46
bechamelcedk: how you will pas the env to the Model class > actually it needs to write everything in the environement class: like this http://dpaste.org/7PI9/10:50
cedkbechamel: I don't know10:51
cedkbechamel: in fact I think it is not possible to do what you want10:52
cedkbechamel: because Model class with the same name must be different for each database10:52
cedkbechamel: which break the metaclass programing10:52
cedkbechamel: by the way, the multi-threaded example, will not follow the path on the next version of tryton10:54
cedkbechamel: in which we will remove the threading of multidatabase10:55
cedkbechamel: and your other examples I don't see the usage of multi-server/database10:55
bechamelexample : my dev server works but my prod server bugs: i just need to fire a shell, connect to the two and play with both10:58
bechamelor if I want to write a two-way synchro between two server :D11:00
cedkbechamel: open 2 shell is a clean way to work11:01
cedkbechamel: two-way synchro that the worst idea11:01
cedkbechamel: a synchronisation must not follow the access rights11:02
bechamel(I was kidding for the synch)11:02
bechamelwhat if i do: value = {...}; dev.Model('party.party').create(values); prod.Model('party.party').create(values), it's much more easy than copy-pasting stuff from one shell to the user11:04
bechamel s/user/other/11:04
cedkbechamel: propose a patch but I don't see how you can do that with metaclass11:06
cedkbechamel: and what will return repr for dev.Model and prod.Model ?11:06
bechamelok I will take some time to see if its possible, I need to understand better the metaclass mechanism11:08
cedkbechamel: and by the way, it is not very Pythonic11:08
bechamelyes it is, it's more explicit11:10
bechamelactually "User = proteus.Model('res.user'); print User" is broken11:11
cedkbechamel: you must set the config11:30
bechamelcedk: yes I called proteus.config.set_trytond('mydb', password='admin') just before11:33
cedkbechamel: what is broken?11:41
bechamelcedk: I don't know I closed the shell, let me re-try11:42
bechamelcedk: complete session http://dpaste.org/Gmyo/11:45
bechamelbbl11:47
bechamelcedk: I think the problem is that trytond on my PYTHONPATH point to the 1.4 series11:58
cedkbechamel: I only test on 1.612:14
-!- gremly(~gremly@186.28.66.219) has joined #tryton12:37
-!- iiping(~iiping@119.94.207.168) has joined #tryton12:56
-!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has left #tryton14:08
-!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has joined #tryton14:08
-!- woakas(~woakas@190.26.105.211) has joined #tryton14:18
-!- eLBati(~elbati@93.37.66.19) has joined #tryton15:30
-!- Red15(~red15@unaffiliated/red15) has joined #tryton16:09
-!- enlightx_(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton16:16
-!- nicoe(~nicoe@91.179.95.215) has joined #tryton16:20
-!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton16:20
-!- Red15(~red15@unaffiliated/red15) has joined #tryton16:37
-!- carlos(~carlos@77.224.191.31) has joined #tryton16:51
-!- SISalp1(~sisalpuse@poof.sisalp.net) has left #tryton17:00
-!- zodman(~zodman@67.223.236.231) has joined #tryton17:16
-!- digitalsatori(~tony@116.233.249.192) has joined #tryton17:16
-!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has joined #tryton17:27
-!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has joined #tryton17:28
-!- yangoon(~mathiasb@p549F53A9.dip.t-dialin.net) has joined #tryton17:34
-!- gremly1(~gremly@186.28.66.219) has joined #tryton17:59
-!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has left #tryton18:07
-!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton18:32
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton18:56
-!- juanfer(~juanfer@190.26.105.211) has joined #tryton20:04
-!- enlightx(~enlightx@dynamic-adsl-84-220-83-86.clienti.tiscali.it) has joined #tryton20:43
-!- enlightx(~enlightx@dynamic-adsl-84-220-83-86.clienti.tiscali.it) has joined #tryton21:32
-!- zodman(~zodman@foresight/developer/zodman) has joined #tryton22:16
-!- enlightx(~enlightx@dynamic-adsl-84-220-83-105.clienti.tiscali.it) has joined #tryton22:28
-!- zodman(~zodman@67.223.236.231) has joined #tryton23:50

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