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

chat.freenode.net #tryton log beginning Fri Jun 4 00:00:01 CEST 2010
2010-06-04 01:17 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-06-04 03:22 -!- digitalsatori(~tony@116.233.249.192) has joined #tryton
2010-06-04 03:36 -!- woakas(~woakas@190.26.105.211) has joined #tryton
2010-06-04 04:44 -!- juanfer(~juanfer@190.26.146.165) has joined #tryton
2010-06-04 05:18 -!- yangoon(~mathiasb@p549F7458.dip.t-dialin.net) has joined #tryton
2010-06-04 07:32 -!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has left #tryton
2010-06-04 07:53 -!- eLBati(~elbati@94.160.33.123) has joined #tryton
2010-06-04 08:06 -!- sharkcz(~dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton
2010-06-04 08:27 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-06-04 09:10 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-06-04 09:14 -!- mr_amit(~amit@117.254.25.154) has joined #tryton
2010-06-04 09:20 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-06-04 09:34 -!- nicoe(~nicoe@91.179.95.215) has joined #tryton
2010-06-04 09:48 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-06-04 09:48 -!- mr_amit(~amit@117.254.25.154) has left #tryton
2010-06-04 09:55 -!- paepke(~paepke@p4FEB601E.dip.t-dialin.net) has joined #tryton
2010-06-04 10:00 -!- mr_amit(~amit@117.254.25.154) has joined #tryton
2010-06-04 10:23 -!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has joined #tryton
2010-06-04 10:27 <cedk> bechamel: ok, I will make _CONFIG a threaded object
2010-06-04 10:27 <cedk> bechamel: and I will store _CONFIG on each Model
2010-06-04 10:29 <bechamel> cedk: 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 it
2010-06-04 10:29 <bechamel> like env = proteus.Environement()
2010-06-04 10:29 <bechamel> then env.set_tryton(..) and env.Model(...), etc
2010-06-04 10:30 <bechamel> like that no need to use a threaded object (which may be slower)
2010-06-04 10:33 <cedk> bechamel: I don't like
2010-06-04 10:36 <bechamel> but 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 client
2010-06-04 10:37 <bechamel> .. and it does not change the api
2010-06-04 10:37 <cedk> it breaks stuff
2010-06-04 10:38 <cedk> repr will no more work
2010-06-04 10:38 <bechamel> like ?
2010-06-04 10:38 <cedk> I don't how you will pas the env to the Model class
2010-06-04 10:38 -!- varun_OL(~7ab0328f@gateway/web/freenode/x-kkukaihadunicowe) has joined #tryton
2010-06-04 10:38 <cedk> and it makes writing code more complicate
2010-06-04 10:41 <bechamel> more complicate > just a little
2010-06-04 10:44 -!- shalabh_OL(~7ab0328f@gateway/web/freenode/x-olfjvobcvqqjszfe) has joined #tryton
2010-06-04 10:46 -!- shalabh_OL(~7ab0328f@gateway/web/freenode/x-olfjvobcvqqjszfe) has left #tryton
2010-06-04 10:46 -!- sharoon_(~82583342@gateway/web/freenode/x-okstkgbijeobrngq) has joined #tryton
2010-06-04 10:50 <bechamel> cedk: 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/
2010-06-04 10:51 <cedk> bechamel: I don't know
2010-06-04 10:52 <cedk> bechamel: in fact I think it is not possible to do what you want
2010-06-04 10:52 <cedk> bechamel: because Model class with the same name must be different for each database
2010-06-04 10:52 <cedk> bechamel: which break the metaclass programing
2010-06-04 10:54 <cedk> bechamel: by the way, the multi-threaded example, will not follow the path on the next version of tryton
2010-06-04 10:55 <cedk> bechamel: in which we will remove the threading of multidatabase
2010-06-04 10:55 <cedk> bechamel: and your other examples I don't see the usage of multi-server/database
2010-06-04 10:58 <bechamel> example : my dev server works but my prod server bugs: i just need to fire a shell, connect to the two and play with both
2010-06-04 11:00 <bechamel> or if I want to write a two-way synchro between two server :D
2010-06-04 11:01 <cedk> bechamel: open 2 shell is a clean way to work
2010-06-04 11:01 <cedk> bechamel: two-way synchro that the worst idea
2010-06-04 11:02 <cedk> bechamel: a synchronisation must not follow the access rights
2010-06-04 11:02 <bechamel> (I was kidding for the synch)
2010-06-04 11:04 <bechamel> what 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 user
2010-06-04 11:04 <bechamel> s/user/other/
2010-06-04 11:06 <cedk> bechamel: propose a patch but I don't see how you can do that with metaclass
2010-06-04 11:06 <cedk> bechamel: and what will return repr for dev.Model and prod.Model ?
2010-06-04 11:08 <bechamel> ok I will take some time to see if its possible, I need to understand better the metaclass mechanism
2010-06-04 11:08 <cedk> bechamel: and by the way, it is not very Pythonic
2010-06-04 11:10 <bechamel> yes it is, it's more explicit
2010-06-04 11:11 <bechamel> actually "User = proteus.Model('res.user'); print User" is broken
2010-06-04 11:30 <cedk> bechamel: you must set the config
2010-06-04 11:33 <bechamel> cedk: yes I called proteus.config.set_trytond('mydb', password='admin') just before
2010-06-04 11:41 <cedk> bechamel: what is broken?
2010-06-04 11:42 <bechamel> cedk: I don't know I closed the shell, let me re-try
2010-06-04 11:45 <bechamel> cedk: complete session http://dpaste.org/Gmyo/
2010-06-04 11:47 <bechamel> bbl
2010-06-04 11:58 <bechamel> cedk: I think the problem is that trytond on my PYTHONPATH point to the 1.4 series
2010-06-04 12:14 <cedk> bechamel: I only test on 1.6
2010-06-04 12:37 -!- gremly(~gremly@186.28.66.219) has joined #tryton
2010-06-04 12:56 -!- iiping(~iiping@119.94.207.168) has joined #tryton
2010-06-04 14:08 -!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has left #tryton
2010-06-04 14:08 -!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has joined #tryton
2010-06-04 14:18 -!- woakas(~woakas@190.26.105.211) has joined #tryton
2010-06-04 15:30 -!- eLBati(~elbati@93.37.66.19) has joined #tryton
2010-06-04 16:09 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-06-04 16:16 -!- enlightx_(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-06-04 16:20 -!- nicoe(~nicoe@91.179.95.215) has joined #tryton
2010-06-04 16:20 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton
2010-06-04 16:37 -!- Red15(~red15@unaffiliated/red15) has joined #tryton
2010-06-04 16:51 -!- carlos(~carlos@77.224.191.31) has joined #tryton
2010-06-04 17:00 -!- SISalp1(~sisalpuse@poof.sisalp.net) has left #tryton
2010-06-04 17:16 -!- zodman(~zodman@67.223.236.231) has joined #tryton
2010-06-04 17:16 -!- digitalsatori(~tony@116.233.249.192) has joined #tryton
2010-06-04 17:27 -!- FWiesing(~FWiesing@85-126-100-130.work.xdsl-line.inode.at) has joined #tryton
2010-06-04 17:28 -!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has joined #tryton
2010-06-04 17:34 -!- yangoon(~mathiasb@p549F53A9.dip.t-dialin.net) has joined #tryton
2010-06-04 17:59 -!- gremly1(~gremly@186.28.66.219) has joined #tryton
2010-06-04 18:07 -!- paepke(~paepke@p4FEB205E.dip0.t-ipconnect.de) has left #tryton
2010-06-04 18:32 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-06-04 18:56 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-06-04 20:04 -!- juanfer(~juanfer@190.26.105.211) has joined #tryton
2010-06-04 20:43 -!- enlightx(~enlightx@dynamic-adsl-84-220-83-86.clienti.tiscali.it) has joined #tryton
2010-06-04 21:32 -!- enlightx(~enlightx@dynamic-adsl-84-220-83-86.clienti.tiscali.it) has joined #tryton
2010-06-04 22:16 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2010-06-04 22:28 -!- enlightx(~enlightx@dynamic-adsl-84-220-83-105.clienti.tiscali.it) has joined #tryton
2010-06-04 23:50 -!- zodman(~zodman@67.223.236.231) has joined #tryton

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