[Mpuls-commits] r1936 - in wasko/branches/2.0: . mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Mar 11 17:21:24 CET 2010
Author: bh
Date: 2010-03-11 17:21:21 +0100 (Thu, 11 Mar 2010)
New Revision: 1936
Modified:
wasko/branches/2.0/ChangeLog
wasko/branches/2.0/mpulsweb/controllers/formularpage.py
Log:
* mpulsweb/controllers/formularpage.py
(convertErrorItem2WarningDic): removed. Not used anymore.
Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog 2010-03-11 16:19:57 UTC (rev 1935)
+++ wasko/branches/2.0/ChangeLog 2010-03-11 16:21:21 UTC (rev 1936)
@@ -1,6 +1,11 @@
2010-03-11 Bernhard Herzog <bh at intevation.de>
* mpulsweb/controllers/formularpage.py
+ (convertErrorItem2WarningDic): removed. Not used anymore.
+
+2010-03-11 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/controllers/formularpage.py
(convertErrorItem2ErrorDic): Do not check the error items type.
The type attribute can be used to distinguishe between semantic
errors and violations of error rules, but it cannot be used to
Modified: wasko/branches/2.0/mpulsweb/controllers/formularpage.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/formularpage.py 2010-03-11 16:19:57 UTC (rev 1935)
+++ wasko/branches/2.0/mpulsweb/controllers/formularpage.py 2010-03-11 16:21:21 UTC (rev 1936)
@@ -36,16 +36,6 @@
errors[e.name] = e.msg
return errors
-def convertErrorItem2WarningDic(error_items):
- if error_items is None:
- return {}
- errors = {}
- for items in error_items:
- for e in items:
- if e.type == 1:
- errors[e.name] = e.msg
- return errors
-
def convertErrorItem2ValueDic(error_items):
if error_items is None:
return {}
More information about the Mpuls-commits
mailing list