Back to index

plone3  3.1.7
Public Member Functions | Private Attributes
CMFEditions.ArchivistTool.GetItemIterator Class Reference

List of all members.

Public Member Functions

def __init__
def __iter__
def next

Private Attributes

 _getItem
 _stopExceptions
 _pos

Detailed Description

Iterator object using a getitem implementation to iterate over.

Definition at line 483 of file ArchivistTool.py.


Constructor & Destructor Documentation

def CMFEditions.ArchivistTool.GetItemIterator.__init__ (   self,
  getItem,
  stopExceptions 
)

Definition at line 486 of file ArchivistTool.py.

00486 
00487     def __init__(self, getItem, stopExceptions):
00488         self._getItem = getItem
00489         self._stopExceptions = stopExceptions
00490         self._pos = -1


Member Function Documentation

Definition at line 491 of file ArchivistTool.py.

00491 
00492     def __iter__(self):
00493         return self
        

Here is the caller graph for this function:

Definition at line 494 of file ArchivistTool.py.

00494 
00495     def next(self):
00496         self._pos += 1
00497         try:
00498             return self._getItem(self._pos)
00499         except self._stopExceptions:
00500             raise StopIteration()
00501 


Member Data Documentation

Definition at line 487 of file ArchivistTool.py.

Definition at line 489 of file ArchivistTool.py.

Definition at line 488 of file ArchivistTool.py.


The documentation for this class was generated from the following file: