pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Public Attributes
ResultsIterator Class Reference

This object will iterate over all the results for a given type of listing, no matter how many items exist. More...

Inheritance diagram for ResultsIterator:
DomainResultsIterator RecordResultsIterator SubdomainResultsIterator

List of all members.

Public Member Functions

def __init__
def __iter__
def next
 Return the next available item.

Public Attributes

 manager
 domain
 domain_id
 results
 next_uri
 extra_args

Detailed Description

This object will iterate over all the results for a given type of listing, no matter how many items exist.

This is an abstract class; subclasses must define the _init_methods() method.


Constructor & Destructor Documentation

def __init__ (   self,
  manager,
  domain = None 
)

Member Function Documentation

def __iter__ (   self)
def next (   self)

Return the next available item.

If there are no more items in the local 'results' list, check if there is a 'next_uri' value. If so, use that to get the next page of results from the API, and return the first item from that query.


Member Data Documentation

Reimplemented in SubdomainResultsIterator.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties