Beispiel #1
0
 def get_addr_level2_val_list(self, addr_level1):
     rs = ShipCity.select()
     city = filter(lambda x: x["value"] == addr_level1, rs)
     if city:
         city = city[0]
         return [d["value"] for d in city["children"]]
     else:
         return []
Beispiel #2
0
 def get_addr_level1_val_list(self):
     rs = ShipCity.select()
     return [d["value"] for d in rs]
Beispiel #3
0
 def get_all_ship_cities(self):
     rs = ShipCity.select()
     return rs