On Wed, Jun 13, 2007 at 11:28:31AM -0700, HiTekElvis wrote: > I just started using AuthKit and have it working pretty snappily. > Very pleased. > > Have a question: > > Is there a way to have a sort of Authorization Manager, where you can > keep all of the permissions and authorizations in one file and don't > have decorators and such sprinkled throughout the individual > controllers?
I'm using an own module in lib/my/auth.py that contains my own Permission classes that I then include from the lib/base.py. So it's available as my.auth.MyPermission from the controllers. Of course you still need to use the decorators inside the controllers because that's where they appeal. Christoph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
