Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
CMFEditions.tests.DummyTools.VersionAwareReference Class Reference

List of all members.

Public Member Functions

def __init__
def setReference

Public Attributes

 history_id
 version_id
 info
 location_id

Detailed Description

Definition at line 243 of file DummyTools.py.


Constructor & Destructor Documentation

Definition at line 244 of file DummyTools.py.

00244 
00245     def __init__(self, **info):
00246         self.history_id = None
00247         self.version_id = None
00248         self.info = info


Member Function Documentation

def CMFEditions.tests.DummyTools.VersionAwareReference.setReference (   self,
  target_obj,
  remove_info = True 
)

Definition at line 249 of file DummyTools.py.

00249 
00250     def setReference(self, target_obj, remove_info=True):
00251         portal_hidhandler = getToolByName(target_obj, 'portal_historyidhandler')
00252         portal_archivist = getToolByName(target_obj, 'portal_archivist')
00253         self.history_id = portal_hidhandler.queryUid(target_obj)
00254         self.version_id = len(portal_archivist.queryHistory(target_obj))-1
00255         self.location_id = 1 # only one location possible currently
00256         if remove_info and hasattr(self, 'info'):
00257             self.info = None
00258 

Here is the call graph for this function:


Member Data Documentation

Definition at line 245 of file DummyTools.py.

Definition at line 247 of file DummyTools.py.

Definition at line 254 of file DummyTools.py.

Definition at line 246 of file DummyTools.py.


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