示例#1
0
文件: clouddns.py 项目: igueths/pyrax
 def list_records_next_page(self):
     """
     When paging through record results, this will return the next page,
     using the same limit. If there are no more results, a NoMoreResults
     exception will be raised.
     """
     uri = self._paging.get("record", {}).get("next_uri")
     if uri is None:
         raise exc.NoMoreResults("There are no more pages of records to list.")
     return self._list_records(uri)
示例#2
0
文件: clouddns.py 项目: igueths/pyrax
 def list_subdomains_previous_page(self):
     """
     When paging through subdomain results, this will return the previous
     page, using the same limit. If there are no more results, a
     NoMoreResults exception will be raised.
     """
     uri = self._paging.get("subdomain", {}).get("prev_uri")
     if uri is None:
         raise exc.NoMoreResults("There are no previous pages of subdomains "
                 "to list.")
     return self._list_subdomains(uri)