diff roundup/cgi/client.py @ 1502:4013ef6690e9

fix [SF#700483]
author Richard Jones <richard@users.sourceforge.net>
date Sun, 09 Mar 2003 22:57:47 +0000
parents 203f6a154b30
children 9728e5c55633
line wrap: on
line diff
--- a/roundup/cgi/client.py	Sun Mar 09 21:37:38 2003 +0000
+++ b/roundup/cgi/client.py	Sun Mar 09 22:57:47 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.103 2003-03-07 22:46:59 kedder Exp $
+# $Id: client.py,v 1.104 2003-03-09 22:57:47 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -1149,7 +1149,7 @@
         '''
         # check for permission
         if not self.editItemPermission(props):
-            raise PermissionError, 'You do not have permission to edit %s'%cn
+            raise Unauthorised, 'You do not have permission to edit %s'%cn
 
         # make the changes
         cl = self.db.classes[cn]
@@ -1160,7 +1160,7 @@
         '''
         # check for permission
         if not self.newItemPermission(props):
-            raise PermissionError, 'You do not have permission to create %s'%cn
+            raise Unauthorised, 'You do not have permission to create %s'%cn
 
         # create the node and return its id
         cl = self.db.classes[cn]

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