def __markTaskUncompletedIfNecessary(self, task): if task.completed(): task.setCompletionDate(date.Date())
def __markTaskCompletedIfNecessary(self, task, completionDate): if task.allChildrenCompleted() and not task.completed() and \ self.__shouldMarkTaskCompletedWhenAllChildrenCompleted(task): task.setCompletionDate(completionDate)