Back to index

plone3  3.1.7
interfaces.py
Go to the documentation of this file.
00001 from zope.formlib.interfaces import IFormFields
00002 from zope.interface import Attribute
00003 
00004 
00005 class IFormFieldsets(IFormFields):
00006     """A grouped collection of form fields (IFormField objects).
00007     """
00008 
00009     id = Attribute("An id for the fieldset")
00010 
00011     label = Attribute("The label used for the fieldset")
00012 
00013     description = Attribute("An optional description used for the fieldset")
00014 
00015     fieldsets = Attribute("The fieldset definitions")
00016 
00017     def __add__(form_fields):
00018         """Add two form fieldsets (IFormFieldsets) or add additional fields to
00019         an existing fieldset.
00020 
00021         Return a new IFormFieldsets which is a nested representation of the two.
00022         
00023         In order to fullfill the IFormFields API we make all fields available
00024         from the base IFormFieldsets.
00025         """