2011/6/13 Branko Vukelic <[email protected]>:
> Let me just add one more. Make a superclass that handles the auth part
> in __init__ and subclass your controller classes.

Thats a bad idea. I don't think you should rely on the fact that
web.py creates a new object of the class before handling the request.
Also it might not be possible to raise http errors from __init__.

Anand

-- 
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.

Reply via email to