Re: [tryton-dev] Proposal for a new PYSON statement: For

2010-05-21 Thread Cédric Krier
On 21/05/10 05:58 -0700, B.V. wrote: > In order to solve issue 1572 [0], we propose to create a new PYSON > statement For. > > Syntax is: For(key, obj) > key: string or integer or long > obj: list ou dictionary or Eval > Returns a list I don't agree because it assumes that we add access to fiel

[tryton-dev] Proposal for a new PYSON statement: For

2010-05-21 Thread B.V.
In order to solve issue 1572 [0], we propose to create a new PYSON statement For. Syntax is: For(key, obj) key: string or integer or long obj: list ou dictionary or Eval Returns a list So, in purchase/purchase.xml, act_shipment_form's domain [("id", "in", Eval('shipments'))] would become [("id"