Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.fieldsets.form.FieldsetsInputForm Class Reference
Inheritance diagram for plone.fieldsets.form.FieldsetsInputForm:
Inheritance graph
Collaboration diagram for plone.fieldsets.form.FieldsetsInputForm:
Collaboration graph

List of all members.

Public Member Functions

def setUpWidgets
def is_fieldsets

Public Attributes


Detailed Description

An input form which supports fieldsets.

Definition at line 41 of file

Member Function Documentation

Definition at line 64 of file

00065     def is_fieldsets(self):
00066         # We need to be able to test for non-fieldsets in templates.
00067         return IFormFieldsets.providedBy(self.form_fields)

Here is the caller graph for this function:

def plone.fieldsets.form.FieldsetsInputForm.setUpWidgets (   self,
  ignore_request = False 

Definition at line 44 of file

00045     def setUpWidgets(self, ignore_request=False):
00046         # In order to support fieldsets, we need to setup the widgets on all
00047         # the fieldsets as well.
00048         if self.is_fieldsets():
00049             self.widgets = None
00050             for fieldset in self.form_fields.fieldsets:
00051                 fieldset.widgets = form.setUpInputWidgets(
00052                     fieldset, self.prefix, self.context, self.request,
00053                     ignore_request=ignore_request
00054                     )
00055                 if self.widgets is None:
00056                     self.widgets = fieldset.widgets
00057                 else:
00058                     self.widgets += fieldset.widgets
00059         else:
00060             self.widgets = form.setUpInputWidgets(
00061                 self.form_fields, self.prefix, self.context, self.request,
00062                 ignore_request=ignore_request
00063                 )

Here is the call graph for this function:

Member Data Documentation

Definition at line 48 of file

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