I don't want a class created on each request, I want to get environ
when initializing my application. For example:
if environ['SERVER_ADDR']=='127.0.0.1': # If localhost, add a Dev menu

These values would stay the same throughout my session. Now how can I
get these values in  __init__? Is there any workaround?

-- Gnarlie


On Oct 19, 3:59 pm, Graham Dumpleton <[email protected]>
wrote:
> The original document you referenced has three examples of how to have
> a class created on each request with environ captured in constructor.
> Look for those examples where it uses:
>
>   application = Application
>
> 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