Author: reinhard
Date: 2006-11-29 14:26:29 -0600 (Wed, 29 Nov 2006)
New Revision: 9089
Modified:
trunk/gnue-forms/src/GFForm.py
Log:
Correctly define UndefinedParameterError exception class.
issue55 testing
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-11-29 20:23:05 UTC (rev 9088)
+++ trunk/gnue-forms/src/GFForm.py 2006-11-29 20:26:29 UTC (rev 9089)
@@ -52,7 +52,16 @@
def __init__(self):
errors.ApplicationError.__init__(self, u_("Form is read only"))
+# =============================================================================
+class UndefinedParameterError(errors.ApplicationError):
+ """
+ A parameter that is assigned a value is not defined.
+ """
+ def __init__(self, name):
+ errors.ApplicationError.__init__(self, u_(
+ "Parameter '%(name)s' not defined in the form") % {'name': name})
+
# =============================================================================
# Implementation of the form tag
# =============================================================================
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue