[Mpuls-commits] r1998 - wasko/branches/2.0/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Mar 18 12:38:18 CET 2010
Author: torsten
Date: 2010-03-18 12:38:17 +0100 (Thu, 18 Mar 2010)
New Revision: 1998
Modified:
wasko/branches/2.0/mpulsweb/lib/validators.py
Log:
* mpulsweb/lib/validators.py: Added new validators for bundled
actions.
Modified: wasko/branches/2.0/mpulsweb/lib/validators.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/validators.py 2010-03-18 11:35:47 UTC (rev 1997)
+++ wasko/branches/2.0/mpulsweb/lib/validators.py 2010-03-18 11:38:17 UTC (rev 1998)
@@ -561,7 +561,23 @@
class BundleActionForm(BaseFormValidator):
filter_extra_fields = True
all_cases = Int(if_missing=0)
- action = All(String(not_empty=True), OneOf(['no_action']))
+ action = All(String(not_empty=True), OneOf(['no_action',
+ 'markdelete',
+ 'delete',
+ 'markanonymize',
+ 'anonymize',
+ 'restore',
+ 'standin',
+ 'transfer']
+ ))
case_id = ForEach(Int(), convert_to_list=True)
+
+class SetBundleEditorForm(BaseFormValidator):
+ editor = Int(not_empty=True)
+
+
+class SetBundleStandinForm(BaseFormValidator):
+ standin = ForEach(Int(), 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