Exemplo n.º 1
0
 def json(self):
     resp = router.get_zones(org_id=self.organizationId)
     zone = [x for x in resp.json() if x['id'] == self.zoneId]
     if len(zone)>0:
         return zone[0]
 def list_zones_json(self):
     return router.get_zones(org_id=self.organizationId).json()