[Zope-dev] zope.globalrequest?
Andreas Jung
lists at zopyx.com
Sun Jan 18 11:49:02 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>
> I don't actually know how this package fits in with either Z2 or Z3: Z2
> apps are always able to acquire the request, while Z3 apps use the
> "separation of concerns" pattern I just outlined. I've never wanted a
> 'get_request' method in "production" code: I would consider the need
> for it a sign that something in the application is factored wrongly.
>
Your point of view is in general correct. However there are situations
were you don't have access direct access to a request and when
changing/fixing the underlaying framework(s) isn't a option. I had this
issue frequently with the 'validation' module of Archetypes. Using
zope.globalrequest as a workaround is in this case a much better than
solution than hacking the framework.
Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAklzXX4ACgkQCJIWIbr9KYzsKwCgmCKIzx0eSTPRPUA3nUhldRBG
b7gAn2DICuuzvAZ0Z7Bm1NnR10BzpDkU
=w+V4
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090118/44f0afec/attachment-0001.vcf
More information about the Zope-Dev
mailing list