On 8/13/07, Ben Wilson <[EMAIL PROTECTED]> wrote: > > I'm writing an application and would like the same activity (e.g. > session) run regardless of what action (e.g. class view: def GET()) is > being run. Is there an easy way to inject the activity before the > action is called? I imagine it occurs after web.run(). > > -- > Ben Wilson > "Words are the only thing which will last forever" Churchill > > > >
you can do that with a decorator. there is an example here: http://webpy.org/track/wiki/SimpleAuthenticationMethod with the @checkaccess decorator. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
