-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17.01.2009 8:39 Uhr, Dieter Maurer wrote:
> 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.

And it similiar accessing the current transaction using

import transaction
tx = transaction.get()

So: +1

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklxjIIACgkQCJIWIbr9KYwHdwCfWIh4ofZxycUGq+Zk8F/pVuR0
MwgAnRJjI9P/nfh+KXtZvKjkvscdOHyM
=TlB2
-----END PGP SIGNATURE-----
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to