added the event completeTask.
--- 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()
--- 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 @@
<a href="/task/assigncredits/tid={{task.id}}">Assign credits</a>
{% endif %}
{% if not is_guest and task_claimable %}
- <a href="/task/claim/tid={{task.id}}">View claims</a><br />
+ <a href="/task/claim/tid={{task.id}}">View claims for this task</a>.<br />
{% endif %}
{% if comments %}