On May 2, 2007, at 2:15 PM, Ron Bickers wrote: > 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__ ?
The WSGIController (that BaseController inherits from) will actually run your __before__ methods, putting code in __call__ means you can load even before that. Perhaps you have code that has to run before some inherited controllers __before__ method, putting it in __call__ ensures that its called in advance. Cheers, Ben --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
