Back to index

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

List of all members.

Public Member Functions

def __init__
def __call__
def manage_afterAdd
def writableDefaults

Public Attributes

 filepath

Static Public Attributes

string meta_type = 'Filesystem Controller Validator'
tuple manage_options
int is_validator = 1
tuple security = ClassSecurityInfo()

Private Member Functions

def _createZODBClone
def _getState

Detailed Description

FSControllerValidators act like Controller Python Scripts but are not
directly modifiable from the management interface.

Definition at line 31 of file FSControllerValidator.py.


Constructor & Destructor Documentation

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

Definition at line 51 of file FSControllerValidator.py.

00051 
00052     def __init__(self, id, filepath, fullname=None, properties=None):
00053         BaseClass.__init__(self, id, filepath, fullname, properties)
00054         self.filepath = filepath
00055         self._read_action_metadata(self.getId(), filepath)
00056 


Member Function Documentation

Definition at line 57 of file FSControllerValidator.py.

00057 
00058     def __call__(self, *args, **kwargs):
00059         result = FSControllerValidator.inheritedAttribute('__call__')(self, *args, **kwargs)
00060         return result
00061 

Here is the caller graph for this function:

Create a ZODB (editable) equivalent of this object.

Definition at line 71 of file FSControllerValidator.py.

00071 
00072     def _createZODBClone(self):
00073         """Create a ZODB (editable) equivalent of this object."""
00074         obj = ControllerValidator(self.getId())
00075         obj.write(self.read())
00076         return obj
00077 

Definition at line 83 of file FSControllerValidator.py.

00083 
00084     def _getState(self):
00085         return getToolByName(self, 'portal_form_controller').getState(self, is_validator=1)
00086 
00087 Globals.InitializeClass(FSControllerValidator)
00088 
00089 registerFileExtension('vpy', FSControllerValidator)
00090 registerMetaType('Controller Validator', FSControllerValidator)

Here is the call graph for this function:

Definition at line 63 of file FSControllerValidator.py.

00063 
00064     def manage_afterAdd(self, object, container):
00065         try:
00066             BaseClass.manage_afterAdd(self, object, container)
00067         except:
00068             logException()
00069             raise
00070 

Here is the call graph for this function:

Can default actions and validators be modified?

Definition at line 79 of file FSControllerValidator.py.

00079 
00080     def writableDefaults(self):
00081         """Can default actions and validators be modified?"""
00082         return 0


Member Data Documentation

Definition at line 53 of file FSControllerValidator.py.

Definition at line 45 of file FSControllerValidator.py.

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

Definition at line 39 of file FSControllerValidator.py.

string CMFFormController.FSControllerValidator.FSControllerValidator.meta_type = 'Filesystem Controller Validator' [static]

Definition at line 35 of file FSControllerValidator.py.

Definition at line 48 of file FSControllerValidator.py.


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