Back to index

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

List of all members.

Public Member Functions

def __init__
def __len__
def __getitem__
def __iter__

Private Attributes

 _repo
 _obj
 _oldestFirst
 _preserve
 _countPurged
 _retrieve
 _length

Static Private Attributes

tuple __implements__ = (IHistory, )
int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

Lazy history.

Definition at line 729 of file CopyModifyMergeRepositoryTool.py.


Constructor & Destructor Documentation

def CMFEditions.CopyModifyMergeRepositoryTool.LazyHistory.__init__ (   self,
  repository,
  obj,
  oldestFirst,
  preserve,
  countPurged 
)

Definition at line 736 of file CopyModifyMergeRepositoryTool.py.

00736 
00737     def __init__(self, repository, obj, oldestFirst, preserve, countPurged):
00738         archivist = getToolByName(repository, 'portal_archivist')
00739         self._repo = repository
00740         self._obj = obj
00741         self._oldestFirst = oldestFirst
00742         self._preserve = preserve
00743         self._countPurged = countPurged
00744         self._retrieve = repository._retrieve
00745         self._length = len(archivist.queryHistory(obj=obj, preserve=preserve,
00746                                                   countPurged=countPurged))

Here is the call graph for this function:


Member Function Documentation

See IHistory

Definition at line 752 of file CopyModifyMergeRepositoryTool.py.

00752 
00753     def __getitem__(self, selector):
00754         """See IHistory
00755         """
00756         if not self._oldestFirst and selector < self._length:
00757             if selector >= 0:
00758                 selector = self._length - 1 - selector
00759             else:
00760                 selector = - (selector + 1)
00761             
00762         return self._retrieve(self._obj, selector, self._preserve, 
00763                               self._countPurged)

Here is the caller graph for this function:

See IHistory.

Definition at line 764 of file CopyModifyMergeRepositoryTool.py.

00764 
00765     def __iter__(self):
00766         """See IHistory.
00767         """
00768         return GetItemIterator(self.__getitem__,
00769                                stopExceptions=(ArchivistRetrieveError,))
00770 

Here is the call graph for this function:

Here is the caller graph for this function:

See IHistory

Definition at line 747 of file CopyModifyMergeRepositoryTool.py.

00747 
00748     def __len__(self):
00749         """See IHistory
00750         """
00751         return self._length


Member Data Documentation

Definition at line 734 of file CopyModifyMergeRepositoryTool.py.

Definition at line 732 of file CopyModifyMergeRepositoryTool.py.

Definition at line 742 of file CopyModifyMergeRepositoryTool.py.

Definition at line 744 of file CopyModifyMergeRepositoryTool.py.

Definition at line 739 of file CopyModifyMergeRepositoryTool.py.

Definition at line 740 of file CopyModifyMergeRepositoryTool.py.

Definition at line 741 of file CopyModifyMergeRepositoryTool.py.

Definition at line 738 of file CopyModifyMergeRepositoryTool.py.

Definition at line 743 of file CopyModifyMergeRepositoryTool.py.


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