Back to index

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

List of all members.

Public Member Functions

def __init__
def __copy__
def getObjectId
def getContextType
def getButton
def getValidators
def getKey

Public Attributes

 key
 validators

Static Public Attributes

tuple security = ClassSecurityInfo()

Detailed Description

Definition at line 47 of file FormValidator.py.


Constructor & Destructor Documentation

def CMFFormController.FormValidator.FormValidator.__init__ (   self,
  object_id,
  context_type,
  button,
  validators,
  controller = None 
)

Definition at line 52 of file FormValidator.py.

00052 
00053     def __init__(self, object_id, context_type, button, validators, controller=None):
00054         self.key = FormValidatorKey(object_id, context_type, button, controller)
00055 
00056         if isinstance(validators, basestring):
00057             validators = validators.split(',')
00058         validators = [v.strip() for v in validators if v]
00059         if controller:
00060             for v in validators:
00061                 path_elements = v.split('/')
00062                 for p in path_elements:
00063                     s = controller._checkId(p)
00064                     if s:
00065                         raise ValueError, 'Illegal template id: %s' % s
00066         self.validators = validators


Member Function Documentation

Definition at line 67 of file FormValidator.py.

00067 
00068     def __copy__(self):
00069         return FormValidator(self.getObjectId(), self.getContextType(), self.getButton(), self.getValidators())

Here is the call graph for this function:

Definition at line 76 of file FormValidator.py.

00076 
00077     def getButton(self):
00078         return self.key.getButton()

Here is the caller graph for this function:

Definition at line 73 of file FormValidator.py.

00073 
00074     def getContextType(self):
00075         return self.key.getContextType()

Here is the caller graph for this function:

Definition at line 82 of file FormValidator.py.

00082 
00083     def getKey(self):
00084         return self.key
00085 
00086 InitializeClass(FormValidator)
00087 

Definition at line 70 of file FormValidator.py.

00070 
00071     def getObjectId(self):
00072         return self.key.getObjectId()

Here is the caller graph for this function:

Definition at line 79 of file FormValidator.py.

00079 
00080     def getValidators(self):
00081         return self.validators

Here is the caller graph for this function:


Member Data Documentation

Definition at line 53 of file FormValidator.py.

tuple CMFFormController.FormValidator.FormValidator.security = ClassSecurityInfo() [static]

Definition at line 49 of file FormValidator.py.

Definition at line 65 of file FormValidator.py.


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