Back to index

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

List of all members.

Public Member Functions

def __init__
def manage_afterAdd
def __call__
def writableDefaults

Public Attributes

 filepath

Static Public Attributes

string meta_type = 'Filesystem Controller Page Template'
tuple manage_options
tuple security = ClassSecurityInfo()

Private Member Functions

def _updateFromFS
def _readMetadata
def _readFile
def _createZODBClone

Detailed Description

Wrapper for Controller Page Template

Definition at line 32 of file FSControllerPageTemplate.py.


Constructor & Destructor Documentation

def CMFFormController.FSControllerPageTemplate.FSControllerPageTemplate.__init__ (   self,
  id,
  filepath,
  fullname = None,
  properties = None 
)

Definition at line 48 of file FSControllerPageTemplate.py.

00048 
00049     def __init__(self, id, filepath, fullname=None, properties=None):
00050         BaseClass.__init__(self, id, filepath, fullname, properties)
00051         self.filepath = filepath
00052         try:
00053             self._read_action_metadata(self.getId(), filepath)
00054             self._read_validator_metadata(self.getId(), filepath)
00055         except (ValueError, CompilerError), e:
00056             log(summary='metadata error', text='file = %s' % filepath)
00057             raise
00058 
        

Member Function Documentation

Definition at line 89 of file FSControllerPageTemplate.py.

00089 
00090     def __call__(self, *args, **kwargs):
00091         return self._call(FSControllerPageTemplate.inheritedAttribute('__call__'), *args, **kwargs)
00092 

Here is the call graph for this function:

Here is the caller graph for this function:

Create a ZODB (editable) equivalent of this object.

Definition at line 93 of file FSControllerPageTemplate.py.

00093 
00094     def _createZODBClone(self):
00095         """Create a ZODB (editable) equivalent of this object."""
00096         obj = ControllerPageTemplate(self.getId(), self._text, self.content_type)
00097         obj.expand = 0
00098         obj.write(self.read())
00099         obj.validators = copy.copy(Acquisition.aq_base(self.validators))
00100         obj.actions = copy.copy(Acquisition.aq_base(self.actions))
00101         return obj
00102 

Definition at line 69 of file FSControllerPageTemplate.py.

00069 
00070     def _readFile(self, reparse):
00071         BaseClass._readFile(self, reparse)
00072         self._readMetadata()
00073 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 64 of file FSControllerPageTemplate.py.

00064 
00065     def _readMetadata(self):
00066         # workaround for Python 2.1 multiple inheritance lameness
00067         return self._baseReadMetadata()
00068 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 59 of file FSControllerPageTemplate.py.

00059 
00060     def _updateFromFS(self):
00061         # workaround for Python 2.1 multiple inheritance lameness
00062         return self._baseUpdateFromFS()
00063 
    

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 75 of file FSControllerPageTemplate.py.

00075 
00076     def manage_afterAdd(self, object, container):
00077         try:
00078             BaseClass.manage_afterAdd(self, object, container)
00079             # Re-read .metadata after adding so that we can do validation checks
00080             # using information in portal_form_controller.  Since manage_afterAdd
00081             # is not guaranteed to run, we also call these in __init__
00082             self._read_action_metadata(self.getId(), self.filepath)
00083             self._read_validator_metadata(self.getId(), self.filepath)
00084         except:
00085             log(summary='metadata error', text='file = %s' % self.filepath)
00086             logException()
00087             raise
00088 

Can default actions and validators be modified?

Definition at line 104 of file FSControllerPageTemplate.py.

00104 
00105     def writableDefaults(self):
00106         """Can default actions and validators be modified?"""
00107         return 0


Member Data Documentation

Definition at line 50 of file FSControllerPageTemplate.py.

Initial value:
(
        ({'label':'Customize', 'action':'manage_main'},
         {'label':'Test', 'action':'ZScriptHTML_tryForm'},
         {'label':'Validation','action':'manage_formValidatorsForm'},
         {'label':'Actions','action':'manage_formActionsForm'},
        ) + Cacheable.manage_options)

Definition at line 37 of file FSControllerPageTemplate.py.

string CMFFormController.FSControllerPageTemplate.FSControllerPageTemplate.meta_type = 'Filesystem Controller Page Template' [static]

Definition at line 35 of file FSControllerPageTemplate.py.

Definition at line 44 of file FSControllerPageTemplate.py.


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