On 22 October 2010 15:20, Deron Meranda <[email protected]> wrote:
> On Thu, Oct 21, 2010 at 3:49 PM, Jason Garber <[email protected]> wrote:
>> ... In your code, application is just a method of your Handler class, so it's
>> not going to work at all.  Consider using one of these three patterns...
>
> Or a 4th way to just un-indent the definition of the application()
> method so it is instead a top-level function:
>
> def application(environ, start_response):
>    handler = Handler()
>    return handler.do(environ, start_response)
>
> Actually, I'm wondering if that wasn't what was intended all along, but
> there was just an inadvertent indentation error.

Given that there was no 'self' argument, probably likely. :-)

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to