equal
deleted
inserted
replaced
25 task.subs, task.deps = task_subs, [] |
25 task.subs, task.deps = task_subs, [] |
26 |
26 |
27 deps, subs = task.deps, task.subs |
27 deps, subs = task.deps, task.subs |
28 if deps and task.status in ["OP", "LO"]: |
28 if deps and task.status in ["OP", "LO"]: |
29 task.status = "OP" if all(map(lambda t:t.status=="CM",deps)) else "LO" |
29 task.status = "OP" if all(map(lambda t:t.status=="CM",deps)) else "LO" |
30 if subs and task.status in ["OP", "LO", "CM"]: |
30 |
31 task.status = "CM" if all(map(lambda t:t.status=="CM",subs)) else "LO" |
31 ## a task with subs will remain in "LO" and will be made "OP" only if all subs are removed. |
|
32 if subs and task.status in ["OP", "LO"]: |
|
33 task.status = "LO" |
32 |
34 |
33 task.save() |
35 task.save() |
34 return task |
36 return task |
35 |
37 |