'Return a list of all records for the provided zone.
:param zone: Zone to list records for.
:type zone: :class:`Zone`
:return: ``list`` of :class:`Record`'

def list_records(self, zone):

    action = ('%s/servers/%s/zones/%s' % (self.api_root, self.ex_server, zone.id))
    try:
        response = self.connection.request(action=action, method='GET')
    except BaseHTTPError:
        e = sys.exc_info()[1]
        if ((e.code == httplib.UNPROCESSABLE_ENTITY) and e.message.startswith('Could    not    find    domain')):
            raise ZoneDoesNotExistError(zone_id=zone.id, driver=self, value=e.message)
        raise e
    return self._to_records(response, zone)
