From f0d5545df35f9974fb8c4ae572cfea831e79a358 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 29 May 2007 18:48:39 -0400 Subject: Begining of i18n of cobbler. Tests pass, works with English. Need to test translation function and run manual testing to ensure no functional errors in other places (such as import). cobbler_msg (strings file) has been removed. --- cobbler/collection_repos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cobbler/collection_repos.py') diff --git a/cobbler/collection_repos.py b/cobbler/collection_repos.py index 6596a66..922a1ad 100644 --- a/cobbler/collection_repos.py +++ b/cobbler/collection_repos.py @@ -17,7 +17,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. import item_repo as repo import utils import collection -import cexceptions +from cexceptions import * from rhpl.translate import _, N_, textdomain, utf8 @@ -57,5 +57,5 @@ class Repos(collection.Collection): self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/repo/*") del self.listing[name] return True - raise cexceptions.CobblerException("delete_nothing") + raise CX(_("cannot delete an object that does not exist")) -- cgit