parameters: (self, address)
return_statement: return ranges
docstring: Returns id ranges which belong to specified @address\n
          ranges = routes.get_address_ranges(
              Address.from_host_port_family('host.com:1025:2'))
docstring_summary: Returns id ranges which belong to specified
docstring_tokens: Returns id ranges which belong to specified
function: def get_address_ranges(self, address):
          """
          Returns id ranges which belong to specified @address\n
          ranges = routes.get_address_ranges(
              Address.from_host_port_family('host.com:1025:2'))
          """
          ranges = []
          groups = self.get_address_groups(address)
          id = None
          for route in self.filter_by_groups(groups):
              if route.address == address:
                  if id is None:
                      id = route.id
              elif id:
                  ranges.append((id, route.id))
                  id = None
  
          if id:
              ranges.append((id, Id([255] * 64, id.group_id)))
  
          return ranges
function_tokens: def get_address_ranges ( self , address ) : ranges = [ ] groups = self . get_address_groups ( address ) id = None for route in self . filter_by_groups ( groups ) : if route . address == address : if id is None : id = route . id elif id : ranges . append ( ( id , route . id ) ) id = None if id : ranges . append ( ( id , Id ( [ 255 ] * 64 , id . group_id ) ) ) return ranges