Back to index

plone3  3.1.7
Public Member Functions | Private Attributes | Static Private Attributes
CMFEditions.ZVCStorageTool.LazyHistory Class Reference

List of all members.

Public Member Functions

def __init__
def __len__
def __getitem__
def __iter__

Private Attributes

 _length
 _history_id
 _countPurged
 _substitute
 _retrieve

Static Private Attributes

tuple __implements__

Detailed Description

Lazy history adapter.

Definition at line 962 of file ZVCStorageTool.py.


Constructor & Destructor Documentation

def CMFEditions.ZVCStorageTool.LazyHistory.__init__ (   self,
  storage,
  history_id,
  countPurged = True,
  substitute = True 
)
See IHistory.

Definition at line 970 of file ZVCStorageTool.py.

00970 
00971     def __init__(self, storage, history_id, countPurged=True, substitute=True):
00972         """See IHistory.
00973         """
00974         history = storage._getShadowHistory(history_id)
00975         if history is None:
00976             self._length = 0
00977         else:
00978             self._length = history.getLength(countPurged)
00979         self._history_id = history_id
00980         self._countPurged = countPurged
00981         self._substitute = substitute
00982         self._retrieve = storage.retrieve


Member Function Documentation

See IHistory.

Definition at line 988 of file ZVCStorageTool.py.

00988 
00989     def __getitem__(self, selector):
00990         """See IHistory.
00991         """
00992         return self._retrieve(self._history_id, selector, self._countPurged, 
00993                               self._substitute)

Here is the caller graph for this function:

See IHistory.

Definition at line 994 of file ZVCStorageTool.py.

00994 
00995     def __iter__(self):
00996         """See IHistory.
00997         """
00998         return GetItemIterator(self.__getitem__,
00999                                stopExceptions=(StorageRetrieveError,))
01000 

Here is the call graph for this function:

Here is the caller graph for this function:

See IHistory.

Definition at line 983 of file ZVCStorageTool.py.

00983 
00984     def __len__(self):
00985         """See IHistory.
00986         """
00987         return self._length


Member Data Documentation

Initial value:
(
        IHistory,
    )

Definition at line 966 of file ZVCStorageTool.py.

Definition at line 979 of file ZVCStorageTool.py.

Definition at line 978 of file ZVCStorageTool.py.

Definition at line 975 of file ZVCStorageTool.py.

Definition at line 981 of file ZVCStorageTool.py.

Definition at line 980 of file ZVCStorageTool.py.


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