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

chat.freenode.net #tryton log beginning Tue May 26 00:00:01 CEST 2015
2015-05-26 00:05 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-05-26 00:15 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-05-26 03:01 -!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton
2015-05-26 03:15 -!- digitalsatori1(~Thunderbi@125.7.119.155) has joined #tryton
2015-05-26 03:41 -!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton
2015-05-26 04:54 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-05-26 06:07 -!- lgam(~lgam@186.68.170.179) has joined #tryton
2015-05-26 06:20 -!- lgam0(~lgam@186.68.170.179) has joined #tryton
2015-05-26 06:41 -!- frispete_(~frispete@p54A9111A.dip0.t-ipconnect.de) has joined #tryton
2015-05-26 06:57 -!- zeittunnel(~234234234@p5DD19B4D.dip0.t-ipconnect.de) has joined #tryton
2015-05-26 07:01 -!- yangoon(~mathiasb@p549F1B92.dip0.t-ipconnect.de) has joined #tryton
2015-05-26 07:17 -!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-05-26 07:31 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-05-26 07:40 -!- zeittunnel(~234234234@p5DD18579.dip0.t-ipconnect.de) has joined #tryton
2015-05-26 08:39 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-05-26 08:55 -!- udono(~udono@ip-178-202-238-79.hsi09.unitymediagroup.de) has joined #tryton
2015-05-26 09:02 -!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton
2015-05-26 09:12 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-05-26 09:22 -!- digitalsatori1(~Thunderbi@125.7.119.155) has joined #tryton
2015-05-26 09:25 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-05-26 09:27 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-05-26 09:35 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-05-26 09:42 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-05-26 09:45 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-05-26 10:03 -!- jmousset(~jmousset@cpe-et001942.cust.jaguar-network.net) has joined #tryton
2015-05-26 10:04 <jmousset> HI. With trytond 3.6 is it still possible to define "states" attributes in xml defined views, and if so, what syntax should be used ?
2015-05-26 10:08 <pokoli> jmousset: 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_attributes
2015-05-26 10:09 -!- flangevin(~flangevin@cpe-et001942.cust.jaguar-network.net) has joined #tryton
2015-05-26 10:13 <jmousset> Yes, 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 .
2015-05-26 10:24 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-05-26 10:26 <pokoli> jmousset: yes its possible but you have to put the pyson string
2015-05-26 10:26 <pokoli> jmousset: using view attributes it's simpler and clearer
2015-05-26 10:37 <jmousset> For 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 ?
2015-05-26 10:38 <pokoli> jmousset: use view_attributes ;)
2015-05-26 10:42 <jmousset> I 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.
2015-05-26 10:42 -!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton
2015-05-26 10:52 -!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-05-26 10:53 <pokoli> jmousset: why you wan't it on the xml? can not see any reason
2015-05-26 10:54 <pokoli> jmousset: afaik you have to use the string representation of the pyson expression
2015-05-26 11:00 <jmousset> I'm dealing with views whose xml definition is generated by code.
2015-05-26 11:04 <pokoli> jmousset: uoh, i though we where the only ones doing such weird things
2015-05-26 11:06 <pokoli> jmousset: http://hg.tryton.org/trytond/file/e9be93892bda/trytond/model/modelview.py#l409
2015-05-26 11:58 <jmousset> I 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;}}}}}">
2015-05-26 11:58 <jmousset> thank you pokoli.
2015-05-26 12:00 <pokoli> jmousset: you're welcome
2015-05-26 12:18 -!- flangevin(~flangevin@cpe-et001942.cust.jaguar-network.net) has left #tryton
2015-05-26 12:35 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-05-26 12:48 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-05-26 12:53 -!- mariomop(~quassel@host139.186-125-105.telecom.net.ar) has joined #tryton
2015-05-26 13:38 -!- flox(~florent@unaffiliated/flox) has joined #tryton
2015-05-26 14:01 -!- zeittunnel(~234234234@p5DD18579.dip0.t-ipconnect.de) has joined #tryton
2015-05-26 14:04 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-05-26 14:27 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-05-26 14:29 -!- alvin(~quassel@kralizec.serverhamster.com) has left #tryton
2015-05-26 14:29 -!- alvin(~quassel@kralizec.serverhamster.com) has joined #tryton
2015-05-26 14:29 -!- alvin(~quassel@kralizec.serverhamster.com) has left #tryton
2015-05-26 14:31 -!- smarro(~sebastian@190.173.173.84) has joined #tryton
2015-05-26 14:40 -!- nicoe(~nicoe@2a02:a03f:3068:4b00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-05-26 14:52 -!- smarro(~sebastian@190.51.78.56) has joined #tryton
2015-05-26 15:09 -!- digitalsatori(~Thunderbi@203.35.234.18) has joined #tryton
2015-05-26 15:20 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-05-26 15:52 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-05-26 16:00 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-05-26 16:55 -!- digitalsatori(~Thunderbi@203.35.234.18) has joined #tryton
2015-05-26 17:08 -!- jmousset(~jmousset@cpe-et001942.cust.jaguar-network.net) has joined #tryton
2015-05-26 18:23 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-05-26 18:41 -!- sunny_dealmeida(~quassel@210.89.41.186) has joined #tryton
2015-05-26 19:25 -!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton
2015-05-26 19:31 -!- rpit(~ralf@2a02:908:e679:5340:fddb:e6b1:d9d7:f389) has joined #tryton
2015-05-26 20:00 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-05-26 20:10 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-05-26 20:10 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-05-26 20:15 -!- jmousset(~jmousset@mtl93-h02-89-95-229-86.dsl.sta.abo.bbox.fr) has joined #tryton
2015-05-26 20:16 -!- jmousset(~jmousset@mtl93-h02-89-95-229-86.dsl.sta.abo.bbox.fr) has left #tryton
2015-05-26 20:49 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-05-26 21:15 -!- nineinchnick(~jwas@109.231.21.249) has joined #tryton
2015-05-26 21:16 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-05-26 21:59 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-05-26 23:04 -!- munron(~AndChat68@197.211.216.214) has joined #tryton

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