Comment 1 for bug 611570

Revision history for this message
Gary Poster (gary) wrote :

From one perspective, a reasonable fix would be to do the following within test_traverse.

(before traversing)
from zope.security.management import endInteraction, newInteraction, restoreInteraction
endInteraction()
newInteraction(request)

(after traversing)
restoreInteraction()

We also could rip out the current participation (request) from the current interaction and replace it temporarily. This is a bit riskier; typically you want to make sure that the interaction (security policy instance) has the ability to clear any decision caches.

What did you have in mind?