Back to index

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

List of all members.

Public Member Functions

def __init__
def getDiff

Public Attributes

 original_source

Static Public Attributes

tuple security = ClassSecurityInfo()
tuple manage_showDiff = PageTemplateFile('www/cpsDiff.pt', globals())
tuple manage_options

Detailed Description

Subclass which captures the "source" version's text.

Definition at line 48 of file FSPythonScript.py.


Constructor & Destructor Documentation

def CMFCore.FSPythonScript.CustomizedPythonScript.__init__ (   self,
  id,
  text 
)

Definition at line 57 of file FSPythonScript.py.

00057 
00058     def __init__(self, id, text):
00059         self._setId(id)
00060         self.write(text)
00061         self.original_source = text

Here is the call graph for this function:


Member Function Documentation

Return a diff of the current source with the original source.

Definition at line 63 of file FSPythonScript.py.

00063 
00064     def getDiff(self):
00065         """ Return a diff of the current source with the original source.
00066         """
00067         return unified_diff( self.original_source.splitlines()
00068                            , self.read().splitlines()
00069                            , 'original'
00070                            , 'modified'
00071                            , ''
00072                            , ''
00073                            , lineterm=""
00074                            )

Here is the call graph for this function:


Member Data Documentation

Initial value:
(PythonScript.manage_options[:1]
                    + ({'label': 'Diff', 'action': 'manage_showDiff'},)
                    + PythonScript.manage_options[1:]
                     )

Definition at line 78 of file FSPythonScript.py.

tuple CMFCore.FSPythonScript.CustomizedPythonScript.manage_showDiff = PageTemplateFile('www/cpsDiff.pt', globals()) [static]

Definition at line 76 of file FSPythonScript.py.

Definition at line 60 of file FSPythonScript.py.

tuple CMFCore.FSPythonScript.CustomizedPythonScript.security = ClassSecurityInfo() [static]

Definition at line 55 of file FSPythonScript.py.


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