IRC logs of #tryton for Wednesday, 2015-03-18

chat.freenode.net #tryton log beginning Wed Mar 18 00:00:02 CET 2015
-!- nicoe(~nicoe@2a02:a03f:3065:f00:ee55:f9ff:fe7b:f7ac) has joined #tryton00:03
-!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton00:25
-!- duesenfranz(~jona@chello213047255061.tirol.surfer.at) has joined #tryton00:47
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton01:17
jcnormanjoin #ui-grid01:17
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton02:05
-!- alimon(~alimon@134.134.137.75) has joined #tryton04:16
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton04:55
-!- yangoon1(~mathiasb@p549F19A5.dip0.t-ipconnect.de) has joined #tryton06:01
-!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton06:07
-!- frispete(~frispete@p54A91AE9.dip0.t-ipconnect.de) has joined #tryton06:40
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton06:53
-!- VaticanCameos(~pritishc@103.245.118.154) has joined #tryton06:53
-!- mathsniper(3cf680d4@gateway/web/freenode/ip.60.246.128.212) has joined #tryton08:12
-!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton08:39
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:48
-!- jcros(~Thunderbi@LPuteaux-156-15-14-6.w80-14.abo.wanadoo.fr) has joined #tryton09:08
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:27
-!- jcros(~Thunderbi@LPuteaux-156-15-14-6.w80-14.abo.wanadoo.fr) has joined #tryton09:28
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:46
-!- jcros(~Thunderbi@LPuteaux-156-15-14-6.w80-14.abo.wanadoo.fr) has joined #tryton10:05
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton10:06
mathsniperWhat is the tryond __setup__ mean?10:11
pokolimathsniper: it's used to setup your models, for example define error messages, override field propierties and so on10:13
cedkmathsniper: http://doc.tryton.org/3.4/trytond/doc/ref/models/models.html?highlight=__setup__#trytond.model.Model.__setup__10:14
mathsniperDoes the __setup__ execute once when calling pool.init()?10:21
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton10:36
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton10:51
pokolimathsniper: it's done on pool.setup()10:59
mathsniperThanks. See a loop of self.classes and execute cls.__setup__()11:00
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton11:07
-!- smarro(~sebastian@190.105.93.196) has joined #tryton11:07
-!- gyKa(~gyKa@78.56.151.78) has joined #tryton11:29
-!- duesenfranz(~jona@chello213047255061.tirol.surfer.at) has joined #tryton11:33
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton11:44
mathsniperFor proteus, how can I call model method from proteus.Model instance? For example, party = Party(1), party.address_get() is not available.11:58
cedkmathsniper: you can only call methods that are declared in __rpc__11:59
mathsniperFor example, Party Model, how does proteus init the __rpc__?12:01
cedkmathsniper: it doesn't12:01
cedkmathsniper: each Model is in charge of filling its __rpc__ attribute12:02
mathsniperFor example, Party model, where is the code related to initialing __rpc__?12:03
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton12:05
cedkmathsniper: in __setup__12:12
mathsniperThanks. I see both __setup__ and __post_setup__12:15
mathsniperWhy not expose address_get in Party model?12:16
cedkmathsniper: we don't need it12:19
-!- jcros(~Thunderbi@LPuteaux-156-15-14-6.w80-14.abo.wanadoo.fr) has joined #tryton13:12
-!- jcros1(~Thunderbi@LPuteaux-156-15-14-6.w80-14.abo.wanadoo.fr) has joined #tryton13:19
-!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton13:26
-!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton13:36
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton13:57
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton14:01
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton14:34
-!- mariomop(~quassel@host252.190-229-214.telecom.net.ar) has joined #tryton14:41
-!- mathsniper(3cf65aa3@gateway/web/freenode/ip.60.246.90.163) has joined #tryton14:42
-!- jcros(~Thunderbi@LPuteaux-156-15-14-6.w80-14.abo.wanadoo.fr) has joined #tryton14:42
-!- kstenger(~karla@200.124.209.158) has joined #tryton14:48
-!- jcnorman_(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton14:58
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton15:30
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton15:43
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton15:51
mathsniperIn Model.__getattr__ method, where does the data "self._values" come from?15:52
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton15:54
cedkmathsniper: it is filled when values are set to fields15:56
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton16:11
-!- mariomop_(~quassel@host77.190-136-198.telecom.net.ar) has joined #tryton16:13
-!- umang(67f5769a@gateway/web/freenode/ip.103.245.118.154) has joined #tryton16:20
umangHi ! Can the selection method for reference field be an instance method in any case? I'm working on Tryton 3.416:21
-!- munron(~AndChat68@197.211.216.214) has joined #tryton16:22
cedkumang: http://doc.tryton.org/3.4/trytond/doc/ref/models/fields.html?highlight=reference#trytond.model.fields.Reference.selection_change_with16:27
umangThis takes a set of fields right? Which method would this call if I change any of that field? A bit confused here16:32
cedkumang: the method named in selection attribute16:33
umangIf I do that tryton throws error when I open that model "unbound method get_origin() must be called with instance"16:36
-!- mariomop(~quassel@host205.190-138-108.telecom.net.ar) has joined #tryton16:36
umangget_origin is an instance method with a depends decorator for the field16:36
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton16:44
cedkumang: https://bugs.tryton.org/issue463616:47
umangcedk: Thanks.16:54
umangcedk: Do you plan on fixing this in 3.4 also?17:00
cedkumang: yes17:02
umangcedk: Thanks :)17:03
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton17:13
-!- smarro(~sebastian@190.194.225.17) has joined #tryton17:38
-!- jcnorman_(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton18:08
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton18:12
-!- nineinchnick(~jwas@109.231.17.96) has joined #tryton18:24
-!- mathsniper(7a64ccf4@gateway/web/freenode/ip.122.100.204.244) has joined #tryton18:25
-!- sunny_dealmeida(~quassel@210.89.32.160) has joined #tryton18:28
mathsniperWhy "(Model instance).attribute" will trigger "Field" class __get__ method?18:29
-!- jcnorman_(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton18:35
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton18:37
cedkmathsniper: https://docs.python.org/2/howto/descriptor.html18:42
mathsniperThanks cedk. Where is the "fields" code of "from trytond.model import fields"?18:45
cedkmathsniper: in fields/18:46
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton18:48
mathsniperI see. It's a module18:48
-!- mariomop_(~quassel@host146.190-138-115.telecom.net.ar) has joined #tryton19:09
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton19:13
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton19:18
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton19:38
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton19:55
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton19:55
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton19:58
-!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton21:29
-!- frispete(~frispete@p54A91AE9.dip0.t-ipconnect.de) has joined #tryton21:49
-!- nicoe(~nicoe@2a02:a03f:3065:f00:ee55:f9ff:fe7b:f7ac) has joined #tryton22:04
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton22:04
-!- nineinchnick(~jwas@109.231.17.96) has joined #tryton22:40
-!- jcros(~Thunderbi@169.223.125.78.rev.sfr.net) has joined #tryton23:09
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton23:42
-!- jcnorman(~jcnorman@75-136-135-200.dhcp.gnvl.sc.charter.com) has joined #tryton23:46
-!- alimon(alimon@nat/intel/x-yssuaelslgnikhve) has joined #tryton23:59

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