Re: [pylons-discuss] Request attributes vs request environment

2020-11-13 Thread Thierry Florac
Very clear! :) Many thanks !! Thierry -- https://www.ulthar.net -- http://pyams.readthedocs.io Le jeu. 12 nov. 2020 à 21:30, Michael Merickel a écrit : > Webob "request" objects are semi-ephemeral in the context of WSGI. Pyramid > creates one while processing, and if you're using

Re: [pylons-discuss] Request attributes vs request environment

2020-11-12 Thread Michael Merickel
Webob "request" objects are semi-ephemeral in the context of WSGI. Pyramid creates one while processing, and if you're using pyramid_retry then it'll make a new one for each attempt. The "environ", however, is one-per WSGI request and state you put in there will survive for the entire WSGI

[pylons-discuss] Request attributes vs request environment

2020-11-12 Thread Thierry Florac
Hi, When we have to store custom information about current request, we can use it's properties, attributes or environment (or even annotations). What is the correct usage of each of them, and is there any benefit of using one of them against the others? Best regards, Thierry --