On 03/12/2014 03:46 AM, Atul Agrawal wrote:
Hello Everyone,

I wanted my server to perform some task on every request that any user makes to my pyramid server. So I think of extending code where a request initialistaion is made.Something like overriding initialise function here:https://webapp-improved.appspot.com/api/webapp2.html#webapp2.RequestHandler.initialize

Is there any better way to do this in pyramid?
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.
In the past I generated request ids using tweens, somewhat like django and pylon's middleware. Alex Conrad has a nice guide here doing the same:

http://www.alexconrad.org/2012/08/log-unique-request-ids-with-pyramid.html

HTH
AM

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to