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

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

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