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

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

Move a group down in the group list.

Definition at line 196 of file Form.py.

00196                                     :
        """Move a group down in the group list.
        """
        group_list = self.group_list
        i = group_list.index(group)
        if i  == len(group_list) - 1:
            return 0 # can't move further up, so we're done
        # swap groups, moving i down
        group_list[i], group_list[i + 1] = group_list[i + 1], group_list[i]
        self.group_list = group_list
        return 1

    # ACCESSORS     
    security.declareProtected('View', 'get_fields')
    def get_fields(self, include_disabled=0):


Generated by  Doxygen 1.6.0   Back to index