added the event completeTask.
authornishanth
Thu, 25 Feb 2010 16:37:46 +0530
changeset 95 e4034904f82e
parent 94 d1f59bbc2685
child 96 2881ed1c52b0
added the event completeTask.
taskapp/events/task.py
templates/task/view.html
--- 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 %}