[EMAIL PROTECTED] wrote:
This won't work if it is defined like this :
@turbogears.expose()
@my_decorator()
def foo(self):
What turogears see is my_decorator, not foo but validate_error see
"self" which tries to search for my_decorator and won't find it as it
could be some function in outer space.
There's a decorator library out there (somewhere, can't find it now)
that fixes up things like the function name, so @my_decorator (if it
used that library) could wrap foo, and the wrapper function will also
appear to be named foo.
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org