[Zope-dev] zope.globalrequest?
Dieter Maurer
dieter at handshake.de
Sat Jan 17 02:39:42 EST 2009
Hanno Schlichting wrote at 2009-1-16 10:14 +0100:
>Christian Theune wrote:
>> I noticed 'zope.globalrequest' on the PyPI RSS feed today and wonder
>> about it. IMHO this implements an anti-pattern in an official way
>> without a warning that this needs to be handled with care.
>
>The discussion for this happened on the plone-dev mailing list. The
>reasoning for the functionality is to provide a clean way to get to the
>request, without relying on Acquisition. Storing the request in a thread
>local is similar to the way other web-frameworks handle this.
In addition, this is how the global Zope "site" is handled.
It is good to be able to access both "site" and "request" in
a standard way.
--
Dieter
More information about the Zope-Dev
mailing list