Code

Move 'UsageError' definition from roundup.admin to roundup.exceptions.
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sun, 22 Feb 2009 01:49:15 +0000 (01:49 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Sun, 22 Feb 2009 01:49:15 +0000 (01:49 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4158 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/admin.py
roundup/exceptions.py

index 51695e2bd46b44789f4bb88ba23532d631070ab5..653daf3eb999919a0445e3041c4794ddd1aceba5 100644 (file)
@@ -29,6 +29,7 @@ from roundup import __version__ as roundup_version
 import roundup.instance
 from roundup.configuration import CoreConfig
 from roundup.i18n import _
+from roundup.exception import UsageError
 
 class CommandDict(UserDict.UserDict):
     '''Simple dictionary that lets us do lookups using partial keys.
@@ -49,9 +50,6 @@ class CommandDict(UserDict.UserDict):
             raise KeyError, key
         return l
 
-class UsageError(ValueError):
-    pass
-
 class AdminTool:
     ''' A collection of methods used in maintaining Roundup trackers.
 
index 27cc1ef1935d8623b9fe8439a2fb1e5687080106..a9ba2cf8ebd78d028ceda744a416598400191464 100644 (file)
@@ -16,4 +16,7 @@ class Reject(Exception):
     '''
     pass
 
+class UsageError(ValueError):
+    pass
+
 # vim: set filetype=python ts=4 sw=4 et si