[Mpuls-commits] r2541 - wasko/branches/2.0/jmdweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Apr 28 12:54:48 CEST 2010
Author: torsten
Date: 2010-04-28 12:54:47 +0200 (Wed, 28 Apr 2010)
New Revision: 2541
Modified:
wasko/branches/2.0/jmdweb/lib/validators.py
Log:
* jmdweb/lib/validators.py: New validator for setting permissions for
jmdstruktur-module
Modified: wasko/branches/2.0/jmdweb/lib/validators.py
===================================================================
--- wasko/branches/2.0/jmdweb/lib/validators.py 2010-04-28 10:53:53 UTC (rev 2540)
+++ wasko/branches/2.0/jmdweb/lib/validators.py 2010-04-28 10:54:47 UTC (rev 2541)
@@ -23,7 +23,8 @@
# the Bundesministerium fuer Familie, Senioren, Frauen und Jugend and
# European Social Fund resources.
-from formencode.validators import Bool, String
+from formencode import ForEach
+from formencode.validators import Bool, String, Int
from mpulsweb.lib.validators import BaseFormValidator
class NewCaseForm(BaseFormValidator):
@@ -32,4 +33,7 @@
vorname = String()
statement_signed = Bool(if_missing=False)
+class PermissionForm(BaseFormValidator):
+ userid = ForEach(String(), convert_to_list=True)
+
# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8
More information about the Mpuls-commits
mailing list