Diez, > I have some authorization checks that I need to apply to every method in > > a controller. I could apply a decorator to each method, but is there a > > way to apply this at the controller level? > > Use a metaclass for you controller. Or just a post-class-creation > decoration scheme, if you prefer that.
Can you explain a bit more about what you've got in mind. I'm a bit of a n00b with metaclasses and can't figure out how to go a hook that gets called for each function access. Thanks, Paul --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

