# HG changeset patch
# User nishanth
# Date 1267096066 -19800
# Node ID e4034904f82edf2b9cf6e3a0981148a7bee5b74f
# Parent d1f59bbc26852ae667d7e1261bac405a09e576c1
added the event completeTask.
diff -r d1f59bbc2685 -r e4034904f82e taskapp/events/task.py
--- a/taskapp/events/task.py Thu Feb 25 16:17:56 2010 +0530
+++ b/taskapp/events/task.py Thu Feb 25 16:37:46 2010 +0530
@@ -182,3 +182,10 @@
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()
diff -r d1f59bbc2685 -r e4034904f82e templates/task/view.html
--- a/templates/task/view.html Thu Feb 25 16:17:56 2010 +0530
+++ b/templates/task/view.html Thu Feb 25 16:37:46 2010 +0530
@@ -76,7 +76,7 @@
Assign credits
{% endif %}
{% if not is_guest and task_claimable %}
- View claims
+ View claims for this task.
{% endif %}
{% if comments %}