Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.fieldsets.form.FieldsetsEditForm Class Reference
Inheritance diagram for plone.fieldsets.form.FieldsetsEditForm:
Inheritance graph
[legend]
Collaboration diagram for plone.fieldsets.form.FieldsetsEditForm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUpWidgets
def is_fieldsets

Public Attributes

 adapters
 widgets

Detailed Description

An edit form which supports fieldsets.

Definition at line 10 of file form.py.


Member Function Documentation

Definition at line 36 of file form.py.

00036 
00037     def is_fieldsets(self):
00038         # We need to be able to test for non-fieldsets in templates.
00039         return IFormFieldsets.providedBy(self.form_fields)
00040 

Here is the caller graph for this function:

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

Definition at line 13 of file form.py.

00013 
00014     def setUpWidgets(self, ignore_request=False):
00015         # First part is copied from zope.formlib.form.EditForm licensed under
00016         # the ZPL 2.1
00017         self.adapters = {}
00018         # In order to support fieldsets, we need to setup the widgets on all
00019         # the fieldsets as well.
00020         if self.is_fieldsets():
00021             self.widgets = None
00022             for fieldset in self.form_fields.fieldsets:
00023                 fieldset.widgets = form.setUpEditWidgets(
00024                     fieldset, self.prefix, self.context, self.request,
00025                     adapters=self.adapters, ignore_request=ignore_request
00026                     )
00027                 if self.widgets is None:
00028                     self.widgets = fieldset.widgets
00029                 else:
00030                     self.widgets += fieldset.widgets
00031         else:
00032             self.widgets = form.setUpEditWidgets(
00033                 self.form_fields, self.prefix, self.context, self.request,
00034                 adapters=self.adapters, ignore_request=ignore_request
00035                 )


Member Data Documentation

Definition at line 16 of file form.py.

Definition at line 20 of file form.py.


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