[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5385 - trunk/gnue-appserver/src
From: |
reinhard |
Subject: |
r5385 - trunk/gnue-appserver/src |
Date: |
Fri, 19 Mar 2004 14:11:40 -0600 (CST) |
Author: reinhard
Date: 2004-03-19 14:11:39 -0600 (Fri, 19 Mar 2004)
New Revision: 5385
Modified:
trunk/gnue-appserver/src/geasInstance.py
Log:
Even more fixes for exception parameters.
Modified: trunk/gnue-appserver/src/geasInstance.py
===================================================================
--- trunk/gnue-appserver/src/geasInstance.py 2004-03-19 20:03:37 UTC (rev
5384)
+++ trunk/gnue-appserver/src/geasInstance.py 2004-03-19 20:11:39 UTC (rev
5385)
@@ -34,19 +34,19 @@
class DbValueError (Exception):
def __init__ (self, propertyName, value):
- msg = _("""Database returned invalid value '%(value)s' for
-property '%(property)s'""") % { "value" : repr (value),
- "property": propertyName}
- Exception.__init__ (self, self._text)
+ message = _("Database returned invalid value '%(value)s' for property "
+ "'%(property)s'") \
+ % {"value" : repr (value),
+ "property": propertyName}
+ Exception.__init__ (self, message)
-
class PropertyValueError (Exception):
def __init__ (self, propertyName, value):
- self._text = _("Invalid value '%(value)s' for property '%(property)s'") % \
- {"value": repr (value), "property": propertyName}
- Exception.__init__ (self, self._text)
+ message = _("Invalid value '%(value)s' for property '%(property)s'") \
+ % {"value": repr (value),
+ "property": propertyName}
+ Exception.__init__ (self, message)
-
# =============================================================================
# Instance class
# =============================================================================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5385 - trunk/gnue-appserver/src,
reinhard <=