taskapp/events/task.py
changeset 114 38793914921b
parent 113 ea962d5fe99e
child 117 58fa1d626d37
--- a/taskapp/events/task.py	Fri Feb 26 11:34:17 2010 +0530
+++ b/taskapp/events/task.py	Fri Feb 26 13:22:13 2010 +0530
@@ -223,3 +223,17 @@
     creditobj.points = points
     creditobj.given_time = datetime.now()
     creditobj.save()
+
+def completeTask(task, marked_by):
+    """ set the status of task as completed.
+    We dont have to inform parent tasks.
+    That part is taken care by getTask method.
+    """
+
+    task.status = "CM"
+    task.save()
+
+    ## generate notification appropriately using marked_by
+    ## we also have to mark unread requests as invalid
+
+