Code

Norwegian Bokmal translation by Christian Aastorp
[roundup.git] / roundup / actions.py
index 0741aedd6e3f0548c383f315ed4e410600ac5189..e3bbec5622764f21b8f1b249a9f024dc4821eac2 100644 (file)
@@ -49,8 +49,8 @@ class Retire(Action):
         # make sure we don't try to retire admin or anonymous
         if (classname == 'user' and
             self.db.user.get(itemid, 'username') in ('admin', 'anonymous')):
-            raise ValueErrorself._(
-                'You may not retire the admin or anonymous user')
+            raise ValueError(self._(
+                'You may not retire the admin or anonymous user'))
 
         # do the retire
         self.db.getclass(classname).retire(itemid)
@@ -64,5 +64,5 @@ class Retire(Action):
         if not self.db.security.hasPermission('Edit', self.db.getuid(),
                                               classname=classname, itemid=itemid):
             raise Unauthorised(self._('You do not have permission to '
-                                      '%(action)s the %(classname)s class.')%info)
+                                      'retire the %(classname)s class.')%classname)