self.add_field(u'Bild', UnicodeNone())
self.add_field(u'In Übersichtskarte', GermanBoolNone())
self.add_field(u'Forumid', UnsignedNeinNone())
+
+
+class GasthausboxDictValidator(OrderedSchema):
+ """Takes the fields of the Gasthausbox as dict of strings and returns them as dict of appropriet types."""
+ def __init__(self):
+ self.add_field(u'Position', GeoNone()) # '47.583333 N 15.75 E'
+ self.add_field(u'Höhe', UnsignedNone())
+ self.add_field(u'Betreiber', UnicodeNone())
+ self.add_field(u'Sitzplätze', UnsignedNone())
+ self.add_field(u'Übernachtung', BoolUnicodeTupleValidator())
+ self.add_field(u'Rauchfrei', GermanTristateTuple())
+ self.add_field(u'Rodelverleih', BoolUnicodeTupleValidator())
+ self.add_field(u'Handyempfang', ValueCommentListNeinLoopNone())
+ self.add_field(u'Homepage', UrlNeinNone())
+ self.add_field(u'E-Mail', EmailCommentListNeinLoopNone(allow_masked_email=True))
+ self.add_field(u'Telefon', PhoneCommentListNeinLoopNone(comments_are_optional=True))
+ self.add_field(u'Bild', UnicodeNone())
+ self.add_field(u'Rodelbahnen', WikiPageListLoopNone())