Logo Search packages:      
Sourcecode: zope-formulator version File versions  Download package

def Formulator::Form::Form::field_added (   self,
  group = None 
) [inherited]

A field was added to the form.

Definition at line 62 of file Form.py.

00062                                                :
        """A field was added to the form.
        # get indicated group or the first group if none was indicated
        group = group or self.group_list[0]
        # add it to the indicated group (create group if nonexistent)
        groups = self.groups
        field_list = groups.get(group, [])
        groups[group] = field_list
        if group not in self.group_list:
            self.group_list = self.group_list
        self.groups = groups

    security.declareProtected('Change Formulator Forms', 'field_removed')
    def field_removed(self, field_id):

Generated by  Doxygen 1.6.0   Back to index