[Mpuls-commits] r3476 - in base/trunk: . mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Aug 30 12:16:43 CEST 2010
Author: bh
Date: 2010-08-30 12:16:39 +0200 (Mon, 30 Aug 2010)
New Revision: 3476
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/lib/validators.py
Log:
* mpulsweb/lib/validators.py (BaseFormValidator.__init__): Call
the base class constructor. Also, accept all kinds of parameters
and pass them through to he base classe constructor. This way,
it's possible to add more validators by simply instantiating a
derived validator and passing the additional validators to the
constructor as keyword arguments.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2010-08-27 19:05:20 UTC (rev 3475)
+++ base/trunk/ChangeLog 2010-08-30 10:16:39 UTC (rev 3476)
@@ -1,3 +1,12 @@
+2010-08-30 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/lib/validators.py (BaseFormValidator.__init__): Call
+ the base class constructor. Also, accept all kinds of parameters
+ and pass them through to he base classe constructor. This way,
+ it's possible to add more validators by simply instantiating a
+ derived validator and passing the additional validators to the
+ constructor as keyword arguments.
+
2010-08-27 Bernhard Herzog <bh at intevation.de>
* mpulsweb/lib/search.py (Search.VALID_OPTIONS)
Modified: base/trunk/mpulsweb/lib/validators.py
===================================================================
--- base/trunk/mpulsweb/lib/validators.py 2010-08-27 19:05:20 UTC (rev 3475)
+++ base/trunk/mpulsweb/lib/validators.py 2010-08-30 10:16:39 UTC (rev 3476)
@@ -28,7 +28,8 @@
class BaseFormValidator(formencode.Schema):
- def __init__(self):
+ def __init__(self, *args, **kw):
+ formencode.Schema.__init__(self, *args, **kw)
formencode.api.set_stdtranslation(domain="FormEncode", languages=["de"])
allow_extra_fields = True
More information about the Mpuls-commits
mailing list