Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.iterate.browser.diff.DiffView Class Reference
Inheritance diagram for plone.app.iterate.browser.diff.DiffView:
Inheritance graph
[legend]
Collaboration diagram for plone.app.iterate.browser.diff.DiffView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def diffs

Public Attributes

 context
 request
 baseline
 working_copy

Detailed Description

Definition at line 11 of file diff.py.


Constructor & Destructor Documentation

def plone.app.iterate.browser.diff.DiffView.__init__ (   self,
  context,
  request 
)

Definition at line 13 of file diff.py.

00013 
00014     def __init__( self, context, request ):
00015         self.context = context
00016         self.request = request
00017         if IBaseline.providedBy( self.context ):
00018             self.baseline = context
00019             self.working_copy = context.getBackReferences( WorkingCopyRelation.relationship )[0]
00020         elif IWorkingCopy.providedBy( self.context ):
00021             self.working_copy = context
00022             self.baseline = context.getReferences( WorkingCopyRelation.relationship )[0]
00023         else:
00024             raise AttributeError("Invalid Context")

Here is the caller graph for this function:


Member Function Documentation

Definition at line 25 of file diff.py.

00025 
00026     def diffs( self ):
00027         diff = getToolByName(self.context, 'portal_diff')
00028         return diff.createChangeSet( self.baseline,
00029                                      self.working_copy,
00030                                      id1="Baseline",
00031                                      id2="Working Copy" )
00032     
00033         
00034     
00035 
00036     

Here is the call graph for this function:


Member Data Documentation

Definition at line 17 of file diff.py.

Definition at line 14 of file diff.py.

Definition at line 15 of file diff.py.

Definition at line 18 of file diff.py.


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