diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-05-29 18:48:39 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-05-29 18:48:39 -0400 |
commit | f0d5545df35f9974fb8c4ae572cfea831e79a358 (patch) | |
tree | 7876991786aac9479faa894c4d0f7dcb2a9cdcea /cobbler/collection_profiles.py | |
parent | 201e727a1fc571f3a56763dc044a58504cc89af6 (diff) | |
download | third_party-cobbler-f0d5545df35f9974fb8c4ae572cfea831e79a358.tar.gz third_party-cobbler-f0d5545df35f9974fb8c4ae572cfea831e79a358.tar.xz third_party-cobbler-f0d5545df35f9974fb8c4ae572cfea831e79a358.zip |
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.
Diffstat (limited to 'cobbler/collection_profiles.py')
-rw-r--r-- | cobbler/collection_profiles.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cobbler/collection_profiles.py b/cobbler/collection_profiles.py index 8a43b0e..cd1d104 100644 --- a/cobbler/collection_profiles.py +++ b/cobbler/collection_profiles.py @@ -18,7 +18,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. import item_profile as profile import utils import collection -import cexceptions +from cexceptions import * import action_litesync from rhpl.translate import _, N_, textdomain, utf8 @@ -47,7 +47,7 @@ class Profiles(collection.Collection): """ for v in self.config.systems(): if v.profile == name: - raise cexceptions.CobblerException("orphan_system",v.name) + raise CX(_("removal would orphan system: %s") % v.name) if self.find(name): if with_delete: lite_sync = action_litesync.BootLiteSync(self.config) @@ -55,5 +55,5 @@ class Profiles(collection.Collection): self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/profile/*") del self.listing[name] return True - raise cexceptions.CobblerException("delete_nothing") + raise CX(_("cannot delete an object that does not exist")) |