Chris Seberino schrieb:
> On Oct 16, 3:05 am, Christopher Arndt <[email protected]> wrote:
> 
>> Can you give a more complete code example of what you are trying to do?
>> I believe that these functions are not decorators but *generate* decorators.
> 
> I've been using my own custom lightweight auth system for years...
> I was just curious what the last line does.
> I thought any function that returned a function was *already* a
> decorator!?

Ok, now I understand, you are not asking why you have to use decorator
this way, you're asking why you have to use it all.

When you say custom decorators do not work with TG 1.x what does "not
work" mean exactly?

You decorator does not preserve the signature of the original function.
I believe that might  the issue, the decorator.decorator function does that.

Just look at the source code of turbogears.decorator to see what's
happening (requires some studying of the standard library reference though).


Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to