[Zope-CMF] [dev] 'request' in expression context

Jens Vagelpohl jens at dataflake.org
Thu Apr 27 04:33:52 EDT 2006


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


On 26 Apr 2006, at 17:25, yuppie wrote:

> Hi!
>
>
> In createExprContext 'request' is currently set to getattr(object,  
> 'REQUEST', None). 'object' might be None, making 'request' None as  
> well.
>
> Would anybody mind if I change that to getattr(portal, 'REQUEST',  
> None)?

I don't mind, just wondering what cases you came up against where  
"object" was None.

jens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEUIHwRAx5nvEhZLIRAnOeAKC1yq5eAkIMhcBrNyWysjYbZhzhiQCdE3dV
PSJdOPBpoxJ95cUPRWI6a4w=
=eoXA
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list