Exemplo n.º 1
0
 def __removePrerequisites(self, event):
     self.__relationsToRestore = dict()  # pylint: disable-msg=W0201
     for task in self.items:
         prerequisites, dependencies = task.prerequisites(), task.dependencies()
         self.__relationsToRestore[task] = prerequisites, dependencies
         task.removeTaskAsDependencyOf(prerequisites, event=event)
         task.removeTaskAsPrerequisiteOf(dependencies, event=event)
         task.setPrerequisites([], event=event)
         task.setDependencies([], event=event)
Exemplo n.º 2
0
 def __restorePrerequisites(self, event):
     for task, (prerequisites, dependencies) in self.__relationsToRestore.items():
         task.addTaskAsDependencyOf(prerequisites, event=event)
         task.addTaskAsPrerequisiteOf(dependencies, event=event)
         task.setPrerequisites(prerequisites, event=event)
         task.setDependencies(dependencies, event=event)