taskapp/events/task.py
changeset 111 c272d4c601cd
parent 105 091b044a3bf4
child 112 eadff01e395e
equal deleted inserted replaced
110:3685c2333448 111:c272d4c601cd
    12    
    12    
    13     if subs or any(map(lambda t:t.status!="CM",deps)):
    13     if subs or any(map(lambda t:t.status!="CM",deps)):
    14         task.status = "LO"
    14         task.status = "LO"
    15     else:
    15     else:
    16         task.status = "OP"
    16         task.status = "OP"
       
    17 
       
    18     task.mentors.clear()
       
    19     task.mentors.add(task.created_by)
    17     task.save()
    20     task.save()
    18     return task
    21     return task
    19 
    22 
    20 def addSubTask(main_task, sub_task):
    23 def addSubTask(main_task, sub_task):
    21     """ add the task to subs attribute of the task and update its status.
    24     """ add the task to subs attribute of the task and update its status.