Back to index

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

List of all members.

Public Member Functions

def __init__
def manage_afterAdd
def __call__
def writableDefaults

Public Attributes

 id
 filepath

Static Public Attributes

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

Private Member Functions

def _updateFromFS
def _readMetadata
def _readFile

Detailed Description

Wrapper for Controller Page Template

Definition at line 28 of file ControllerPageTemplateFile.py.


Constructor & Destructor Documentation

def CMFFormController.ControllerPageTemplateFile.ControllerPageTemplateFile.__init__ (   self,
  filename,
  _prefix = None,
  kw 
)

Definition at line 43 of file ControllerPageTemplateFile.py.

00043 
00044     def __init__(self, filename, _prefix=None, **kw):
00045         filename = os.path.normpath(filename)
00046         if not os.path.splitext(filename)[1]:
00047             filename = filename + '.cpt'
00048         retval = ControllerPageTemplateFile.inheritedAttribute('__init__')(self, filename, _prefix, **kw)
00049 
00050         self.id = os.path.splitext(os.path.basename(filename))[0]
00051         self.filepath = self.filename
00052         try:
00053             self._read_action_metadata(self.getId(), self.filepath)
00054             self._read_validator_metadata(self.getId(), self.filepath)
00055             return retval
00056         except (ValueError, CompilerError), e:
00057             log(summary='metadata error', text='file = %s' % self.filepath)
00058             raise
00059 


Member Function Documentation

Definition at line 90 of file ControllerPageTemplateFile.py.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 70 of file ControllerPageTemplateFile.py.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 65 of file ControllerPageTemplateFile.py.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 60 of file ControllerPageTemplateFile.py.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 76 of file ControllerPageTemplateFile.py.

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

Can default actions and validators be modified?

Definition at line 95 of file ControllerPageTemplateFile.py.

00095 
00096     def writableDefaults(self):
00097         """Can default actions and validators be modified?"""
00098         return 0

Member Data Documentation

Definition at line 50 of file ControllerPageTemplateFile.py.

Definition at line 49 of file ControllerPageTemplateFile.py.

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

Definition at line 33 of file ControllerPageTemplateFile.py.

string CMFFormController.ControllerPageTemplateFile.ControllerPageTemplateFile.meta_type = 'Controller Page Template (File)' [static]

Definition at line 31 of file ControllerPageTemplateFile.py.

Definition at line 40 of file ControllerPageTemplateFile.py.


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