Back to index

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

List of all members.

Public Member Functions

def testChanges
def applyChanges

Static Public Attributes

string meta_type = "Binary Diff"

Detailed Description

Simple binary difference

Definition at line 5 of file BinaryDiff.py.


Member Function Documentation

Update the specified object with the difference

Definition at line 16 of file BinaryDiff.py.

00016 
00017     def applyChanges(self, ob):
00018         """Update the specified object with the difference"""
00019         # Simplistic update
00020         self.testChanges(ob)
00021         if not self.same:
00022             setattr(ob, self.field, self.newValue)
00023         
00024 InitializeClass(BinaryDiff)
00025 

Here is the call graph for this function:

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

Definition at line 10 of file BinaryDiff.py.

00010 
00011     def testChanges(self, ob):
00012         """Test the specified object to determine if the change set will apply without errors"""
00013         value = _getValue(ob, self.field)
00014         if not self.same and value != self.oldValue:
00015             raise ValueError, ("Conflict Error during merge", self.field, value, self.oldValue)
        

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

string CMFDiffTool.BinaryDiff.BinaryDiff.meta_type = "Binary Diff" [static]

Definition at line 8 of file BinaryDiff.py.


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