On Mon, Jun 13, 2011 at 3:45 AM, Anand Chitipothu <[email protected]> wrote: > 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__.
For real? It used to work reliably for me in the past... Are there cases when web.py doesn't create a new object? -- Branko -- 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.
