[Zope3-Users] Access request object from content_factory

Rupert Redington rupert at neontribe.co.uk
Wed Jun 21 05:17:24 EDT 2006


Hi John,

When I'm looking for the request object from somewhere like that I use

from zope.security.management import getInteraction

request = getInteraction().participations[0]

Why this works is outlined (IIRC) in zope/app/securitypolicy/zopepolicy.txt.

There may well be better ways to fish for the request than this... any
offerings?

Rupert



More information about the Zope3-users mailing list