diff roundup/cgi/PageTemplates/Expressions.py @ 4238:445e1bc8b1df

remove use of string exception
author Richard Jones <richard@users.sourceforge.net>
date Mon, 10 Aug 2009 03:36:32 +0000
parents 5f9e00836006
children 6e3e4f24c753
line wrap: on
line diff
--- a/roundup/cgi/PageTemplates/Expressions.py	Mon Aug 10 03:34:42 2009 +0000
+++ b/roundup/cgi/PageTemplates/Expressions.py	Mon Aug 10 03:36:32 2009 +0000
@@ -53,7 +53,8 @@
 try:
     from zExceptions import Unauthorized
 except ImportError:
-    Unauthorized = "Unauthorized"
+    class Unauthorized(Exception):
+        pass
 
 def acquisition_security_filter(orig, inst, name, v, real_validate):
     if real_validate(orig, inst, name, v):

Roundup Issue Tracker: http://roundup-tracker.org/