commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9089 - trunk/gnue-forms/src


From: reinhard
Subject: [gnue] r9089 - trunk/gnue-forms/src
Date: Wed, 29 Nov 2006 14:26:31 -0600 (CST)

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
 # =============================================================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]