>> From cheetah.py,

>  compiled_tmpl = compiled_tmpl(searchList=terms)#, filter=WebSafe)

> I would want this to happen ALL the time. How to override?

i cant see a direct way, but i think you can use the following
workaround.

from Cheetah.Filters import Filter

def MyWebSafe(Filter):
     def filter(self, val, **keywords):
         return val
     return filter

web.cheetah.WebSafe = MyWebSafe

/web/cheetah.py", line 92, in render
    compiled_tmpl = compiled_tmpl(searchList=terms, filter=WebSafe)
  File "<string>", line 61, in __init__
  File "/usr/lib/python2.5/site-packages/Cheetah-1.0-py2.5-linux-
x86_64.egg/Cheetah/Template.py", line 127, in __init__
    raise TypeError(reason)
TypeError: arg 'filter' must be string or class
(if class, must be subclass of Cheetah.Filters.Filter)" while reading
upstream,
--~--~---------~--~----~------------~-------~--~----~
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