Marco Mariani wrote:
> Rupert Redington wrote:
>> from zope.security.management import getInteraction
>> request = getInteraction().participations
>> 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
> In my understanding, if you need to look for the request inside a
> content object, you're doing something that should be done in another
> place, be it a view or an adapter.
> Of course, I've been wrong before :-]
Not this time :).
The hack displayed above (going thru the security interaction) should
not be considered a standard procedure for getting at the request in
places where you don't have it. Content objects are dull. They do
nothing. Other stuff does things *to* them. Mats' solution is the better
Zope3-users mailing list