summaryrefslogtreecommitdiff
path: root/taskapp/events
diff options
context:
space:
mode:
authornishanth2010-02-25 16:37:46 +0530
committernishanth2010-02-25 16:37:46 +0530
commit20ef35279dcc5c1e5b9cfac5830739c9f7c221ef (patch)
tree01452d4228a267354413f7adf368e0a851165fce /taskapp/events
parent40adcbfc4a6eb40feb37a35db88ea2ed8a7845a7 (diff)
downloadpytask-20ef35279dcc5c1e5b9cfac5830739c9f7c221ef.tar.gz
pytask-20ef35279dcc5c1e5b9cfac5830739c9f7c221ef.tar.bz2
pytask-20ef35279dcc5c1e5b9cfac5830739c9f7c221ef.zip
added the event completeTask.
Diffstat (limited to 'taskapp/events')
-rw-r--r--taskapp/events/task.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/taskapp/events/task.py b/taskapp/events/task.py
index ddd40d4..4f7f76f 100644
--- a/taskapp/events/task.py
+++ b/taskapp/events/task.py
@@ -182,3 +182,10 @@ def removeUser(main_task, rem_user):
main_task.assigned_users.remove(rem_user)
main_task.save()
+
+def completeTask(main_task):
+ """ set the status of task to CP.
+ """
+
+ main_task.status = "CP"
+ main_task.save()