On Oct 17, 1:25 am, "Diez B. Roggisch" <[email protected]> wrote:
> No. The question of Chris S. was "why use tg.decorators". And the answer
> is "because then they will be registered in the Decoration", whereas the
> normal way of decorating he uses & which is used in repoze.what bypasses
> that registry, and instead wraps the action itself.
>
> So it becomes dependant on decoration order, and there are hooks in the
> Decoration such as before_validate, before_call that will *always* run
> before those "standard" decorators. Which might impose risks, or
> otherwise undesired behavior.
Thanks. So there *is* a lot of black magic that goes on. This magic
goes beyond just setting __name__ because I tried that and that didn't
work. Thanks again for the info!
cs
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---