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
Collaboration diagram for CMFFormController.FSControllerValidator.FSControllerValidator:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def __call__
def manage_afterAdd
def writableDefaults

Public Attributes


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

Constructor & Destructor Documentation

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

Definition at line 51 of file

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)

Member Function Documentation

Definition at line 57 of file

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

Here is the caller graph for this function:

Create a ZODB (editable) equivalent of this object.

Definition at line 71 of file

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

Definition at line 83 of file

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

Here is the call graph for this function:

Definition at line 63 of file

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

Here is the call graph for this function:

Can default actions and validators be modified?

Definition at line 79 of file

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

Member Data Documentation

Definition at line 53 of file

Definition at line 45 of file

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

Definition at line 39 of file

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

Definition at line 35 of file

Definition at line 48 of file

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