Back to index

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

List of all members.

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Member Functions

def _call

Detailed Description

Definition at line 7 of file BaseControllerPageTemplate.py.


Member Function Documentation

def CMFFormController.BaseControllerPageTemplate.BaseControllerPageTemplate._call (   self,
  inherited_call,
  args,
  kwargs 
) [private]

Definition at line 12 of file BaseControllerPageTemplate.py.

00012 
00013     def _call(self, inherited_call, *args, **kwargs):
00014         # Intercept a call to a form and see if REQUEST.form contains the
00015         # value form.submitted.  If so, perform validation.  If not, update
00016         # the controller state and treat as a normal form.
00017 
00018         REQUEST = self.REQUEST
00019 
00020         controller = getToolByName(self, 'portal_form_controller')
00021         controller_state = controller.getState(self, is_validator=0)
00022 
00023         form_submitted = REQUEST.form.get('form.submitted', None)
00024         if form_submitted:
00025             controller_state = self.getButton(controller_state, REQUEST)
00026             validators = self.getValidators(controller_state, REQUEST).getValidators()
00027             controller_state = controller.validate(controller_state, REQUEST, validators)
00028             del REQUEST.form['form.submitted']
00029             return self.getNext(controller_state, REQUEST)
00030 
00031         kwargs['state'] = controller_state
00032         return inherited_call(self, *args, **kwargs)
00033 
00034 
00035 Globals.InitializeClass(BaseControllerPageTemplate)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 9 of file BaseControllerPageTemplate.py.


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