Code

remove use of string exception
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 10 Aug 2009 03:36:32 +0000 (03:36 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 10 Aug 2009 03:36:32 +0000 (03:36 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4343 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/PageTemplates/Expressions.py

index 3c1284a2c4c2a435db8370915746ccbb687991b5..8ce2756835459443d3c9e9e6bb37d7f184b058e9 100644 (file)
@@ -18,6 +18,7 @@ Fixes:
   2550570)
 - don't show entire history by default
   (fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540629)
+- remove use of string exception
 
 
 2009-03-18 1.4.8 (r4209)
index bbe7aa634ff53d09157d2163923c355343a5d42a..7074bb80bdfa10a62d5f6cdcdc092ed896c1a323 100644 (file)
@@ -53,7 +53,8 @@ guarded_getattr = getattr
 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):