Hi,

Le 17 janv. 2012 à 19:22, felipon a écrit :
> i need to do somethig like in open document template
> 
> <? python total = 0 >
> 
> for each="o in objects"
> 
> <? python total += o.something ?>
> 
> /for
> 
> 
> total
> 
> but relatorio does not like <? python .... >
> 
> how  one should do things like this ???

Here is how I proceed :

(enter your expressions in openoffice fields)

<with vars="myvar = 'foo'">
<myvar = 'bar'>
Myvar has value <myvar>
</with>

See examples in *.odt in the modules.

Jean-Christophe Michel
--
Symétrie
livres et partitions, édition multimédia
30 rue Jean-Baptiste Say
69001 LYON (FRANCE)

tél +33 (0)478 29 52 14
fax +33 (0)478 30 01 11
web www.symetrie.com



-- 
tryton-dev@googlegroups.com mailing list

Reply via email to