On Apr 5, 11:17 pm, "~flow" <[EMAIL PROTECTED]> wrote:
> > Werkzeug doesn't require greenlet, it supports them. If you're not using
> > them neither will werkzeug do anything with them. Threading is handled by
> > the WSGI gateway and beyond the scope of Werkzeug. The only thing where
> > we come in contact with threads is the optional context locals as you
> > pointed out.
>
> i am still trying to get my head around the question when exactly
> threading will occur and how to control it and what the implications
> are. it is one the main stumbling blocks in python web programming for
> me and frankly the exegesis in werkzeug/local.py didn't help me too
> much, i just don't seem to dig it.
>
> this is not a werkzeug-specific matter and maybe it's just me. guess i
> just need one good web page to clear up this one. to me it's a bit
> annoying that in web frameworks i have -- apparently -- to deal with
> both multiple interpreters running at the same time *and* possibly
> multiple threads within the same interpreter (vm) at the same time. i
> know this is slightly off topic but since you were so nice to answer
> my previous post and since it is so vital for successful WSGI
> programming maybe you want to educate us on the vital points: when
> running a WSGI service under say mod_python * how do i control
> *whether* multiple processes can occur, * how can i test they *will*
> indeed occur and * how do i diagnose things are running ok *when* they
> occur? and the same for threads. ok this is definitely not a werkzeug
> question.
Read:
http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading
Being a WSGI application, you should be able to get access to original
WSGI environment and therefore access the variables in environment
described in that documentation. Note these are WSGI variables and are
not mod_wsgi specific. Thus any WSGI capable web server should provide
them.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---