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))
def addGroup(self, group, params): self.__GROUPS.append(Group(group, params))