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

def Formulator::Form::Form::add_group (   self,
  group 
) [inherited]

Add a new group.

Definition at line 130 of file Form.py.

00130                               :
        """Add a new group.
        """
        groups = self.groups
        if groups.has_key(group):
            return 0 # group already exists (NOTE: should we raise instead?)
        groups[group] = []
        # add the group to the bottom of the list of groups
        self.group_list.append(group)

        self.group_list = self.group_list
        self.groups = groups
        return 1

    security.declareProtected('Change Formulator Forms', 'remove_group')
    def remove_group(self, group):


Generated by  Doxygen 1.6.0   Back to index