On 05/15/2013 12:00 PM, alfonso olavarria wrote:
>
>
> El martes, 14 de mayo de 2013 15:00:44 UTC-4:30, alfonso olavarria escribi�:
>
> Hola,
>
> estoy haciendo un reporte en openerp que ya tengo un poco adelantado
> en cuanto al dise�o en html y css, pero en la manipulacion de los
It seems my code had a mistake (like I said, it was not tested):
<%
variable_acumulada = 0
for orden in objects:
variable_acumulada += orden.amount_total
%>
el valor acumulado total es ${variable_acumulada}
as you can see, in the <% %> I work with regular python idioms and later
I print the result from the routine. There are multiple ways to do the
same, depending on how you want to lay out your code.
I strongly suggest reading this chapter from the docs:
http://docs.makotemplates.org/en/latest/syntax.html#control-structures
Mariano
> --
> You received this message because you are subscribed to the Google
> Groups "Mako Templates for Python" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
mako-discuss...@googlegroups.com.
> To post to this group, send email to
mako-d...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/mako-discuss?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>