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

yuppie y.2006_ at wcm-solutions.de
Thu Apr 27 05:34:52 EDT 2006

Jens Vagelpohl wrote:
> On 26 Apr 2006, at 17:25, yuppie wrote:
>> 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.

The 'object' argument for listFilteredActionsFor, listActionInfos and 
getActionInfo is optional. If it is omitted, 'object' is set to None.

Cheers, Yuppie

More information about the Zope-CMF mailing list