define range in your template globals

web.template.Template.globals["range"] = range

then

$for i in range() will work in template, no need to generate from main
program code

On 1/17/08, slav0nic <[EMAIL PROTECTED]> wrote:
>
>
> hi
> for statement from function don't work in templatate
> for example:
> for i in range() does't work =( i must generate range() in main
> program code
>
>
> It is made specially? or bug?)
> >
>


-- 
ashok raavi

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to