Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage Class Reference
Inheritance diagram for CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage:
Inheritance graph
[legend]
Collaboration diagram for CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def save
def getHistory
def purge
def retrieve
def getId

Public Attributes

 history

Static Public Attributes

string id = 'portal_historiesstorage'

Static Private Attributes

tuple __implements__ = (IStorage, IPurgeSupport)

Detailed Description

Partial Storage used for PurgePolicy Tetss

Definition at line 637 of file DummyTools.py.


Constructor & Destructor Documentation

Definition at line 644 of file DummyTools.py.

00644 
00645     def __init__(self):
00646         self.history = []


Member Function Documentation

def CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage.getHistory (   self,
  history_id,
  preserve = (),
  countPurged = True,
  substitute = True 
)

Definition at line 651 of file DummyTools.py.

00651 
00652                    substitute=True):
00653         return self.history

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 33 of file DummyTools.py.

00033 
00034     def getId(self):
00035         return self.id

Here is the call graph for this function:

def CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage.purge (   self,
  history_id,
  selector,
  metadata = {},
  countPurged = True 
)

Definition at line 655 of file DummyTools.py.

00655 
00656               countPurged=True):
00657         del self.history[selector]

Here is the call graph for this function:

Here is the caller graph for this function:

def CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage.retrieve (   self,
  history_id,
  selector = None,
  countPurged = True,
  substitute = True 
)

Definition at line 659 of file DummyTools.py.

00659 
00660                  countPurged=True, substitute=True):
00661         if selector >= len(self.history):
00662             raise StorageRetrieveError()
00663         return self.history[selector]
00664 

Here is the caller graph for this function:

def CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage.save (   self,
  history_id,
  obj 
)

Definition at line 647 of file DummyTools.py.

00647 
00648     def save(self, history_id, obj):
00649         self.history.append(obj)

Here is the call graph for this function:


Member Data Documentation

tuple CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage.__implements__ = (IStorage, IPurgeSupport) [static, private]

Definition at line 641 of file DummyTools.py.

Definition at line 645 of file DummyTools.py.

string CMFEditions.tests.DummyTools.PurgePolicyTestDummyStorage.id = 'portal_historiesstorage' [static]

Definition at line 642 of file DummyTools.py.


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