On May 2, 3:16 pm, Ben Bangert <[EMAIL PROTECTED]> wrote: > In Pylons, you'd want to probably set __before__ and __after__ blocks > in your main controller (in lib/base.py). These will be called before > the controllers action and afterwards. This is the common place to > setup: > - Global objects and database sessions
> - Authorization will commonly be done at the controller level unless > you want to require some sort of permission across multiple > controllers, in which case putting that check in the lib/base.py > controller's __before__ would be prudent. The formatting is handled There's a note in the __call__ method of the lib/base.py BaseController that says to put any per-request code there. How does putting code in __call__ differ from putting it in __before__ ? -- Ron --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
