def inn_to_gasthausbox(inn):
"""Converts an inn class to a dict of Gasthausbox properties. value is an Inn instance."""
def convfromdb(value, key):
def inn_to_gasthausbox(inn):
"""Converts an inn class to a dict of Gasthausbox properties. value is an Inn instance."""
def convfromdb(value, key):
value = collections.OrderedDict()
value['Position'] = LonLat(inn.position_longitude, inn.position_latitude)
value['Höhe'] = inn.position_elevation
value = collections.OrderedDict()
value['Position'] = LonLat(inn.position_longitude, inn.position_latitude)
value['Höhe'] = inn.position_elevation