> render = web.template.render('/removed/httpd/htdocs/templates/',
> cache=False)
> web.template.Template.globals['nice_telephone'] = nice_telephone
>
>
> then the the function is below that a ways...
>
> def nice_telephone(t):
> st = str(t)
>
> ret = st[0:2] + '-' + st[3:5] + '-' + st[6-8]
>
> print ret
>
Would moving the globals assignment after the function declaration help?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---