El mié, 15-09-2010 a las 13:48 +0300, Aydın ŞEN escribió:
> Can i use all python functions in webpy templator? When i try to use
> zip() function it gives error[1].
>
>
> [1]:global name 'zip' is not defined
> --
> Aydın Şen
>
You can add one function to template [1]:
render = web.template.render('templates', globals={'zip': zip})
[1] http://webpy.org/docs/0.3/templetor#builtins
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.