示例#1
0
 def insertGroupBeforeGroup(self, groupName, group, params):
     """
     Insert a group before a named group.
     i.e. if the specified group name is "update x", the new
     group will be inserted BEFORE "update x"
     """
     index = self.__getGroupIndexByDesc(groupName)
     if index == None:
         index = len(self.getAllGroups())
     self.__GROUPS.insert(index, Group(group, params))
示例#2
0
 def addGroup(self, group, params):
     self.__GROUPS.append(Group(group, params))