Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
CMFDiffTool.BaseDiff.BaseDiff Class Reference
Collaboration diagram for CMFDiffTool.BaseDiff.BaseDiff:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def testChanges
def applyChanges

Public Attributes

 field
 oldValue
 newValue
 same
 id1
 id2
 label
 schemata

Static Public Attributes

string meta_type = "Base Diff"

Static Private Attributes

tuple __implements__ = (IDifferenceZ2,)
int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

Basic diff type

Definition at line 14 of file BaseDiff.py.


Constructor & Destructor Documentation

def CMFDiffTool.BaseDiff.BaseDiff.__init__ (   self,
  obj1,
  obj2,
  field,
  id1 = None,
  id2 = None,
  field_label = None,
  schemata = None 
)

Definition at line 23 of file BaseDiff.py.

00023 
00024                  field_label=None,schemata=None):
00025         self.field = field
00026         self.oldValue = _getValue(obj1, field)
00027         self.newValue = _getValue(obj2, field)
00028         self.same = (self.oldValue == self.newValue)
00029         if not id1 and hasattr(obj1, 'getId'):
00030             id1 = obj1.getId()
00031         if not id2 and hasattr(obj2, 'getId'):
00032             id2 = obj2.getId()
00033         self.id1 = id1
00034         self.id2 = id2
00035         self.label = field_label or field
00036         self.schemata = schemata or 'default'


Member Function Documentation

Update the specified object with the difference

Definition at line 41 of file BaseDiff.py.

00041 
00042     def applyChanges(self, ob):
00043         """Update the specified object with the difference"""
00044         pass
00045     

Test the specified object to determine if the change set will apply without errors

Definition at line 37 of file BaseDiff.py.

00037 
00038     def testChanges(self, ob):
00039         """Test the specified object to determine if the change set will apply without errors"""
00040         pass

Here is the caller graph for this function:


Member Data Documentation

Definition at line 19 of file BaseDiff.py.

tuple CMFDiffTool.BaseDiff.BaseDiff.__implements__ = (IDifferenceZ2,) [static, private]

Definition at line 17 of file BaseDiff.py.

Definition at line 24 of file BaseDiff.py.

Definition at line 32 of file BaseDiff.py.

Definition at line 33 of file BaseDiff.py.

Definition at line 34 of file BaseDiff.py.

string CMFDiffTool.BaseDiff.BaseDiff.meta_type = "Base Diff" [static]

Definition at line 20 of file BaseDiff.py.

Definition at line 26 of file BaseDiff.py.

Definition at line 25 of file BaseDiff.py.

Definition at line 27 of file BaseDiff.py.

Definition at line 35 of file BaseDiff.py.


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