thanks.

But that sounds like twisting my arm in the back for 720 degree in
order to fit what it is now. Which is also why I start this topic, what
is the rationale for the current design. I could have missed some
significant advantage of why it is design this way.

Ian Bicking wrote:
> [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

Reply via email to