On 17/01/12 04:53 -0800, Felipe Alvarez wrote:
> Yeah shure, it's easy when you know how ... i've tried defining
> variables in the template ... cause haven't found good docs or
> examples all i try gives me
> 
> 
> )
> TemplateSyntaxError: invalid syntax in expression
> "{'{urn:oasis:names:tc:opendocument:xmlns:office:1.0}value': {% total
> = 0 %}, '{urn:oasis:names:tc:opendocument:xmlns:office:1.0}value-
> type': __relatorio_guess_type({% total = 0 %})}" of "attrs" directive
> (, line 1) (/tmp/trytondoNDBe1.odt, line 1
> 
> 
> 
> tried relatorio://total = 0   relatorio://<? python total = 0 ?>
> rela ...://<% total = 0 %>  rela..://{% python total = 0 %}


Assignation is done with "with" statement see [1].

[1]
http://genshi.edgewall.org/wiki/Documentation/0.6.x/xml-templates.html#py-with

PS: Please don't top-post and follow Netiquette see
https://groups.google.com/d/topic/tryton/-IA9TLq5qag/discussion

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpqque67DqpC.pgp
Description: PGP signature

Reply via email to