summaryrefslogtreecommitdiffstats
path: root/cobbler/item.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-05-29 18:48:39 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-05-29 18:48:39 -0400
commitf0d5545df35f9974fb8c4ae572cfea831e79a358 (patch)
tree7876991786aac9479faa894c4d0f7dcb2a9cdcea /cobbler/item.py
parent201e727a1fc571f3a56763dc044a58504cc89af6 (diff)
downloadthird_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/item.py')
-rw-r--r--cobbler/item.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/item.py b/cobbler/item.py
index d4be1c7..d2981e0 100644
--- a/cobbler/item.py
+++ b/cobbler/item.py
@@ -15,6 +15,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
import exceptions
import serializable
import utils
+from cexceptions import *
from rhpl.translate import _, N_, textdomain, utf8
class Item(serializable.Serializable):
@@ -45,7 +46,7 @@ class Item(serializable.Serializable):
"""
(success, value) = utils.input_string_or_hash(options,None)
if not success:
- raise cexceptions.CobblerException("exc_kopts")
+ raise CX(_("invalid kernel options"))
else:
self.kernel_options = value
return True