Skip to content

Commit

Permalink
- Merge tseaver-strexp_delenda-branch to the head.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Nov 18, 2003
1 parent 8b1af38 commit ba85cc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Python code.
"""

__version__='$Revision: 1.50 $'[11:-2]
__version__='$Revision: 1.51 $'[11:-2]

import sys, os, traceback, re, marshal, new
from Globals import DTMLFile, MessageDialog, package_home
Expand All @@ -34,6 +34,7 @@
from AccessControl import full_write_guard, safe_builtins
from AccessControl.ZopeGuards import guarded_getattr, guarded_getitem
from zLOG import LOG, ERROR, INFO, PROBLEM
from zExceptions import Forbidden

# Track the Python bytecode version
import imp
Expand Down Expand Up @@ -336,7 +337,7 @@ def _validateProxy(self, roles=None):
user = getSecurityManager().getUser()
if user is not None and user.allowed(self, roles):
return
raise 'Forbidden', ('You are not authorized to change <em>%s</em> '
raise Forbidden, ('You are not authorized to change <em>%s</em> '
'because you do not have proxy roles.\n<!--%s, %s-->'
% (self.id, user, roles))

Expand Down

0 comments on commit ba85cc4

Please sign in to comment.