IRC logs of #tryton for Monday, 2011-09-05

chat.freenode.net #tryton log beginning Mon Sep 5 00:00:02 CEST 2011
-!- elbenfreund(~elbenfreu@f055057255.adsl.alicedsl.de) has joined #tryton00:11
-!- alimon(~alimon@189.154.55.187) has joined #tryton00:31
-!- smarro(~sebastian@190.51.92.162) has joined #tryton00:49
-!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton02:25
-!- alimon_(~alimon@189.154.55.187) has joined #tryton03:02
-!- alimon(~alimon@189.154.55.187) has joined #tryton03:06
-!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton06:25
-!- ndn_pit(~ndn_pit@92.47.220.247) has joined #tryton07:34
-!- ndn_pit(~ndn_pit@92.47.220.247) has left #tryton07:34
-!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton07:56
-!- jcm(~jcm@cxr69-10-88-172-230-130.fbx.proxad.net) has joined #tryton08:45
-!- okko1(~okko@62.58.29.41) has joined #tryton08:48
-!- vladimirek(~vladimire@bband-dyn34.178-40-42.t-com.sk) has joined #tryton08:49
-!- elbenfreund(~elbenfreu@g227009173.adsl.alicedsl.de) has joined #tryton08:55
-!- meanmicio(~lfm@190.195.50.15) has joined #tryton08:57
-!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton09:13
-!- hoRn(~jan@dslb-178-005-144-249.pools.arcor-ip.net) has joined #tryton09:20
-!- elbenfreund(~elbenfreu@g227009173.adsl.alicedsl.de) has joined #tryton09:35
-!- pjstevns(~pjstevns@a82-94-5-133.adsl.xs4all.nl) has joined #tryton09:40
-!- pjstevns(~pjstevns@a82-94-5-133.adsl.xs4all.nl) has left #tryton09:40
-!- udono(~udono@ip-95-222-129-145.unitymediagroup.de) has joined #tryton09:50
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:58
-!- ccomb(~ccomb@anj75-1-82-226-210-96.fbx.proxad.net) has joined #tryton10:13
-!- elbenfreund(~elbenfreu@p54B924F0.dip.t-dialin.net) has joined #tryton10:21
-!- ecarreras(~under@81.184.3.75.static.user.ono.com) has joined #tryton10:43
-!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton10:43
-!- nicoe(~nicoe@ced.homedns.org) has joined #tryton10:45
meanmicioGood morning all. Do we plan to have the "default value" option for fields in the GTK, or is it already implemented ?10:49
cedkmeanmicio: it is already removed :-)10:50
meanmiciocedk : :-)10:50
meanmiciocedk : why ?10:51
cedkmeanmicio: it was a buggy concept10:51
cedkmeanmicio: we think it is better to use Singleton for configuration10:51
meanmiciocedk: but it was useful in terms of repetitive actions for a specific user. If you have any pointers about how to implement it, great !10:55
meanmiciocedk : another quick question. If I want to search for an specific field in a many2one, what's the best way to implement it ? For example. I put a select="1" in patient. Now, I would like to search not only for the patient name, but for the ID or ther info10:58
cedkmeanmicio: https://groups.google.com/d/topic/tryton-dev/pMa0SKKITxk/discussion11:00
cedkmeanmicio: override search_rec_name11:01
meanmiciocedk: the idea is to be able to search for different values (so I can any field the ID, lastname, name ) all in the same search field.11:03
cedkmeanmicio: so create function field for each one11:04
-!- hoRn(~jan@dslb-178-005-144-249.pools.arcor-ip.net) has left #tryton11:06
-!- hoRn(~jan@dslb-178-005-144-249.pools.arcor-ip.net) has joined #tryton11:23
-!- ralf58_(~quassel@dslb-088-070-157-015.pools.arcor-ip.net) has joined #tryton11:26
-!- ndn_pit(~ndn_pit@92.47.220.247) has joined #tryton11:27
ndn_pithow can i get user ogject? "Transaction().user" gives me user id, but i want to get object with attributes...11:28
ndn_piti know: self.pool.get('res.user').browse(Transaction().user), but is there another way?11:28
cedkndn_pit: no11:29
-!- ndn_pit(~ndn_pit@92.47.220.247) has left #tryton11:29
-!- woakas(~woakas@200.106.218.64) has joined #tryton11:33
-!- bechamel(~user@cismwks02-virtual1.cism.ucl.ac.be) has joined #tryton12:03
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton12:10
-!- smarro(~sebastian@190.51.92.162) has joined #tryton14:02
-!- bechamel(~user@host-85-201-144-79.brutele.be) has joined #tryton14:07
-!- heg(~heg@dyn.144-85-139-138.dsl.vtx.ch) has joined #tryton14:21
-!- okko1(~okko@62.58.29.41) has joined #tryton14:58
-!- ccomb(~ccomb@anj75-1-82-226-210-96.fbx.proxad.net) has joined #tryton15:57
-!- smarro(~sebastian@186-129-248-247.static.speedy.com.ar) has joined #tryton15:57
hoRnHi15:58
hoRnI need to parse stock-quanties to an application outside tryton: so i set context['stock_date_end']=datetime.date.today() in the xml-rpc-request. this results in  "cannot marshal <type 'datetime.date'> objects"16:00
hoRnAm I trying something stupid again?16:01
cedkhoRn: you must patch xmlrpclib to allow to marshall date16:02
cedkhoRn: look in trytond/protocols/xmlrpc.py16:02
hoRncedk: ok - will take a look - thank you16:02
-!- alimon(alimon@189.154.55.187) has joined #tryton16:15
hoRncedk: i wrapped the method in a own method16:48
hoRncedk: seems more clean16:48
-!- zodman(~zodman@foresight/developer/zodman) has joined #tryton16:57
zodmancedk:  in your review http://codereview.tryton.org/99002/ i see on sql string a "%%s"16:58
zodmanhow is called it ?16:58
zodmani unknow that ...16:58
nicoezodman: it's probably because this string will be interpreted by python '%' operator17:00
cedkzodman: it is just to escape '%' in string formatting17:00
zodmanonly works on cursor.execute ?17:01
zodmanor it is valid for python strings ? "aaaa%%s" % ("b",) ?17:01
cedkzodman: python will tell that it is missing a %s17:02
zodmanooh yes i found it the documentation of dbapitext :) tnx ced and nicoe17:04
-!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton17:20
-!- dfamorato(~dfamorato@173-9-190-185-miami.txt.hfc.comcastbusiness.net) has joined #tryton17:49
-!- enlightx(~enlightx@dynamic-adsl-94-34-209-153.clienti.tiscali.it) has joined #tryton19:36
-!- enlightx(~enlightx@dynamic-adsl-94-34-209-153.clienti.tiscali.it) has joined #tryton19:47
-!- enlightx(~enlightx@dynamic-adsl-94-34-209-153.clienti.tiscali.it) has joined #tryton20:04
-!- pjstevns(~pjstevns@helpoort.xs4all.nl) has joined #tryton21:13
-!- pjstevns(~pjstevns@helpoort.xs4all.nl) has left #tryton21:13
-!- sharkcz(~sharkcz@2001:15c0:6747:160::7) has joined #tryton21:20
-!- gremly(~gremly@200.106.218.64) has joined #tryton22:03
-!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton22:54
-!- ccomb(~ccomb@vau75-2-81-57-244-84.fbx.proxad.net) has joined #tryton23:21
-!- elbenfreund(~elbenfreu@g227009173.adsl.alicedsl.de) has joined #tryton23:30
-!- okko1(~okko@dhcp-077-251-140-095.chello.nl) has joined #tryton23:46

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