diff options
Diffstat (limited to 'src/zope')
-rw-r--r-- | src/zope/security/management.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/zope/security/management.py b/src/zope/security/management.py index f058da0..5bbe6b7 100644 --- a/src/zope/security/management.py +++ b/src/zope/security/management.py @@ -78,17 +78,13 @@ def getInteraction(): def newInteraction(*participations): """Start a new interaction.""" - - + if queryInteraction() is not None: - stack = queryInteraction()._newInteraction_called_from raise AssertionError("newInteraction called" - " while another interaction is active:\n%s" - % "".join(traceback.format_list(stack))) + " while another interaction is active.") interaction = getSecurityPolicy()(*participations) - interaction._newInteraction_called_from = traceback.extract_stack() thread_local.interaction = interaction def endInteraction(): |