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

def Formulator::Form::Form::move_field_group (   self,
  field_ids,
  from_group,
  to_group 
) [inherited]

Moves a field from one group to the other.

Definition at line 112 of file Form.py.

00112                                                                :
        """Moves a field from one group to the other.
        """
        if len(field_ids) == 0:
            return 0
        if from_group == to_group:
            return 0
        groups = self.groups
        from_list = groups[from_group]
        to_list = groups[to_group]
        for field in self.get_fields_in_group(from_group, include_disabled=1)[:]:
            if field.id in field_ids:
                from_list.remove(field.id)
                to_list.append(field.id)
        self.groups = groups
        return 1

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


Generated by  Doxygen 1.6.0   Back to index