Provide the actual code you are using which causes the error. Hard to know when don't know which of the many documented examples in that post you are using and whether you have copied them right.
Graham On 19 October 2011 12:32, Gnarlodious <[email protected]> wrote: > Tried to move some reusable output into __init__ but suddenly my app > can't find environ. I had been getting environ in __call__ saying > this: > > __call__(self, environ, startResponse) > > however trying the same in __init__ fails: > > TypeError: __init__() takes exactly 3 positional arguments (1 given) > > What do I need to do to get the environ dict in__init__?? > > I did try some stuff from > http://blog.dscpl.com.au/2011/01/implementing-wsgi-application-objects.html > > but all failed with various errors. > > -- Gnarlie > > -- > 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. > > -- 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.
