IRC logs of #tryton for Tuesday, 2015-05-26

chat.freenode.net #tryton log beginning Tue May 26 00:00:01 CEST 2015
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:05
-!- smarro(~sebastian@190.105.93.196) has joined #tryton00:15
-!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton03:01
-!- digitalsatori1(~Thunderbi@125.7.119.155) has joined #tryton03:15
-!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton03:41
-!- smarro(~sebastian@190.105.93.196) has joined #tryton04:54
-!- lgam(~lgam@186.68.170.179) has joined #tryton06:07
-!- lgam0(~lgam@186.68.170.179) has joined #tryton06:20
-!- frispete_(~frispete@p54A9111A.dip0.t-ipconnect.de) has joined #tryton06:41
-!- zeittunnel(~234234234@p5DD19B4D.dip0.t-ipconnect.de) has joined #tryton06:57
-!- yangoon(~mathiasb@p549F1B92.dip0.t-ipconnect.de) has joined #tryton07:01
-!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton07:17
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton07:31
-!- zeittunnel(~234234234@p5DD18579.dip0.t-ipconnect.de) has joined #tryton07:40
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:39
-!- udono(~udono@ip-178-202-238-79.hsi09.unitymediagroup.de) has joined #tryton08:55
-!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton09:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:12
-!- digitalsatori1(~Thunderbi@125.7.119.155) has joined #tryton09:22
-!- munron(~AndChat68@197.211.216.214) has joined #tryton09:25
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton09:27
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:35
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:42
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton09:45
-!- jmousset(~jmousset@cpe-et001942.cust.jaguar-network.net) has joined #tryton10:03
jmoussetHI. With trytond 3.6 is it still possible to define "states" attributes in xml defined views, and if so, what syntax should be used ?10:04
pokolijmousset: yes it's possible, you have to use view_attributes. See http://doc.tryton.org/3.6/trytond/doc/ref/models/models.html?highlight=view_attributes#trytond.model.ModelView.view_attributes10:08
-!- flangevin(~flangevin@cpe-et001942.cust.jaguar-network.net) has joined #tryton10:09
jmoussetYes, thanks, I did that for most  views, but I'd like to define some "states" in the xml itself instead of a method for some views. In the discussion of this review : http://codereview.tryton.org/6971002#msg13 cedk seems to say that is still possible .10:13
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton10:24
pokolijmousset: yes its possible but you have to put the pyson string10:26
pokolijmousset: using view attributes it's simpler and clearer10:26
jmoussetFor example, if I had : <field name="example"  states="{'invisible': Bool(~Eval('is_example'))"/>  , do you know how I should now write this xml if i want to keep the attribute in the xml ?10:37
pokolijmousset: use view_attributes ;)10:38
jmoussetI understand that's the best way, but in some cases I need to keep the "states" attribute in the xml. You said I could do it by putting the pyson string in the xml. But I don't know what syntax I should use.10:42
-!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton10:42
-!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton10:52
pokolijmousset: why you wan't it on the xml? can not see any reason10:53
pokolijmousset: afaik you have to use the string representation of the pyson expression10:54
jmoussetI'm dealing with views whose xml definition is generated by code.11:00
pokolijmousset: uoh, i though we where the only ones doing such  weird things11:04
pokolijmousset: http://hg.tryton.org/trytond/file/e9be93892bda/trytond/model/modelview.py#l40911:06
jmoussetI found a solution : as you said we have to write the pyson in json , an example :          <page id="bank" string="Bank" states="{&quot;invisible&quot;: {&quot;__class__&quot;: &quot;Bool&quot;, &quot;v&quot;: {&quot;__class__&quot;: &quot;Not&quot;, &quot;v&quot;: {&quot;__class__&quot;: &quot;Bool&quot;, &quot;v&quot;: {&quot;d&quot;: &quot;&quot;, &quot;__class__&quot;: &quot;Eval&quot;, &quot;v&quot;: &quot;is_bank&quot;}}}}}">11:58
jmoussetthank you pokoli.11:58
pokolijmousset: you're welcome12:00
-!- flangevin(~flangevin@cpe-et001942.cust.jaguar-network.net) has left #tryton12:18
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton12:35
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton12:48
-!- mariomop(~quassel@host139.186-125-105.telecom.net.ar) has joined #tryton12:53
-!- flox(~florent@unaffiliated/flox) has joined #tryton13:38
-!- zeittunnel(~234234234@p5DD18579.dip0.t-ipconnect.de) has joined #tryton14:01
-!- smarro(~sebastian@190.105.93.196) has joined #tryton14:04
-!- kstenger(~karla@200.124.209.158) has joined #tryton14:27
-!- alvin(~quassel@kralizec.serverhamster.com) has left #tryton14:29
-!- alvin(~quassel@kralizec.serverhamster.com) has joined #tryton14:29
-!- alvin(~quassel@kralizec.serverhamster.com) has left #tryton14:29
-!- smarro(~sebastian@190.173.173.84) has joined #tryton14:31
-!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton14:40
-!- smarro(~sebastian@190.51.78.56) has joined #tryton14:52
-!- digitalsatori(~Thunderbi@203.35.234.18) has joined #tryton15:09
-!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has joined #tryton15:20
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton15:52
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton16:00
-!- digitalsatori(~Thunderbi@203.35.234.18) has joined #tryton16:55
-!- jmousset(~jmousset@cpe-et001942.cust.jaguar-network.net) has joined #tryton17:08
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton18:23
-!- sunny_dealmeida(~quassel@210.89.41.186) has joined #tryton18:41
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton19:25
-!- rpit(~ralf@2a02:908:e679:5340:fddb:e6b1:d9d7:f389) has joined #tryton19:31
-!- munron(~AndChat68@197.211.216.214) has joined #tryton20:00
-!- smarro(~sebastian@190.105.93.196) has joined #tryton20:10
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton20:10
-!- jmousset(~jmousset@mtl93-h02-89-95-229-86.dsl.sta.abo.bbox.fr) has joined #tryton20:15
-!- jmousset(~jmousset@mtl93-h02-89-95-229-86.dsl.sta.abo.bbox.fr) has left #tryton20:16
-!- smarro(~sebastian@190.105.93.196) has joined #tryton20:49
-!- nineinchnick(~jwas@109.231.21.249) has joined #tryton21:15
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton21:16
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:59
-!- munron(~AndChat68@197.211.216.214) has joined #tryton23:04

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