return r
+class GasthausboxValidator(wrpylib.wrvalidators.GasthausboxDictValidator):
+ def __init__(self):
+ wrpylib.wrvalidators.GasthausboxDictValidator.__init__(self)
+ self.pre_validators=[wrpylib.mwmarkup.TemplateValidator(as_table=True, as_table_keylen=17), WinterrodelnTemplateDict(u'Gasthausbox')]
+ self.chained_validators = [GasthausboxDictConverter()]
+
+
def gasthausbox_to_inn(wikitext, inn=None):
"""Converts a inn wiki page containing a {{Gasthausbox}} to an inn.
raises a formencode.Invalid exception if an error occurs.