you need to set it for tempalte: template.Template.globals['range'] = range
see http://webpy.org/templetor. p.s. so i suggest template can contain the builtins. On Jan 17, 2008 7:43 PM, 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?) > > > -- Laziness, DRY always. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
