IRC logs of #tryton for Monday, 2015-10-12

chat.freenode.net #tryton log beginning Mon Oct 12 00:00:01 CEST 2015
-!- cjbarnes18(~user@host86-129-110-17.range86-129.btcentralplus.com) has joined #tryton00:20
cjbarnes18hello,  I would like to replace a method in the Address model in my module, what is the conventional way to do this? is there an example that you could direct me to?00:23
cedkcjbarnes18: replacing is most of the time a bad idea, it is better to extend00:54
cedkcjbarnes18: so you just have to write a module that extend/override this method00:54
-!- lukio(~lukio@181.47.148.245) has joined #tryton05:21
-!- yangoon(~mathiasb@p549F0372.dip0.t-ipconnect.de) has joined #tryton07:02
-!- den2204(~mahon@81.4.204.84) has joined #tryton07:23
-!- frispete_(~frispete@p54A91E16.dip0.t-ipconnect.de) has joined #tryton07:40
-!- rpit(~rpit@2a02:908:e670:3a80:8438:e0fb:78bc:a7c0) has joined #tryton07:43
-!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton08:18
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:42
-!- Timitos(~kpreisler@85.186.96.139) has joined #tryton08:46
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:23
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton10:10
-!- dj_xatra(d9a65382@gateway/web/freenode/ip.217.166.83.130) has joined #tryton10:29
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton11:15
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton11:57
-!- kstenger(~karla@r167-59-48-162.dialup.adsl.anteldata.net.uy) has joined #tryton15:16
-!- kstenger1(~karla@r167-59-55-101.dialup.adsl.anteldata.net.uy) has joined #tryton15:38
-!- kstenger(~karla@r167-59-55-101.dialup.adsl.anteldata.net.uy) has joined #tryton15:39
-!- smarro(~sebastian@181.16.4.44) has joined #tryton17:19
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton17:25
-!- smarro(~sebastian@181.16.4.44) has joined #tryton17:45
-!- sunny_dealmeida(~quassel@203.115.71.174) has joined #tryton18:04
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton18:24
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton18:35
-!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton18:52
-!- smarro(~sebastian@181.16.4.44) has joined #tryton21:15
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton21:34
-!- smarro(~sebastian@181.16.4.44) has joined #tryton21:49
-!- frispete(~frispete@p54A91E16.dip0.t-ipconnect.de) has joined #tryton22:07
-!- smarro(~sebastian@181.16.4.44) has joined #tryton22:14
-!- aroncero(~aroncero@86.63.19.153) has joined #tryton22:47
aronceroHi, is this pyson statement correct in a form view?22:52
aroncerostates="{'invisible': Not(Bool(Eval('my_boolean_field')))}"22:52
aronceroI want a page to be visible or not according a field22:55
cedkaroncero: you can no more put Python in XML, you must put the json dumps or you can use ModelView.view_attributes23:00
cedkaroncero: also if your field is a boolean, you don't need Bool but just put the correct default value23:01
cedkaroncero: something like: ~Eval('my_boolean_field', False)23:01
cedkaroncero: http://doc.tryton.org/3.6/trytond/doc/ref/models/models.html?highlight=view_attribute#trytond.model.ModelView.view_attributes23:02
aroncerocedk: Ok, so no more pyson is states?23:09
aroncerocedk: http://tryton.readthedocs.org/projects/trytond/en/latest/topics/views/index.html#common-attributes-states23:09
cedkaroncero: you still can but in the dumps format, not the Python23:12
cedkaroncero: we removed all the eval of external data in Tryton for security23:12
aroncerocedk: ok, i am viewing an example in calendar_todo23:14
cedkaroncero: also it gives more flexbility to override this states by another module23:15
aroncerocedk: I understand it... I will try it. Thanks23:17
aroncerocedk: It works, :D23:19
-!- kstenger(~karla@r167-59-55-101.dialup.adsl.anteldata.net.uy) has joined #tryton23:30

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