Now from_python of RodelbahnboxValidator formats the values as correct table.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 10 Mar 2014 20:56:41 +0000 (20:56 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 10 Mar 2014 20:56:41 +0000 (20:56 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@1925 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrmwmarkup.py

index 8d5d9c3ce59a6ae7c70cbfb2adea4d3de2f23903..8a7244c1b311ca8b7d607b2e4f0dc6bf5c31b7c8 100644 (file)
@@ -155,7 +155,7 @@ class RodelbahnboxTemplateDict(formencode.Validator):
 class RodelbahnboxValidator(wrpylib.wrvalidators.RodelbahnboxDictValidator):
     def __init__(self):
         wrpylib.wrvalidators.RodelbahnboxDictValidator.__init__(self)
-        self.pre_validators=[wrpylib.mwmarkup.TemplateValidator(), RodelbahnboxTemplateDict()]
+        self.pre_validators=[wrpylib.mwmarkup.TemplateValidator(as_table=True, as_table_keylen=20), RodelbahnboxTemplateDict()]
         self.chained_validators = [RodelbahnboxDictConverter()]