diff options
author | nishanth | 2010-02-26 13:22:13 +0530 |
---|---|---|
committer | nishanth | 2010-02-26 13:22:13 +0530 |
commit | 783a2c959f365588849b2af728aa7e9b0c19bf02 (patch) | |
tree | 0c110808e97f728ef0e2d624739ef8a07de6c0de /taskapp/events/task.py | |
parent | 8f9406383064921f8cf50bad0a6d4f1bd06f9cb4 (diff) | |
download | pytask-783a2c959f365588849b2af728aa7e9b0c19bf02.tar.gz pytask-783a2c959f365588849b2af728aa7e9b0c19bf02.tar.bz2 pytask-783a2c959f365588849b2af728aa7e9b0c19bf02.zip |
mark task as complete functionality is added.
Diffstat (limited to 'taskapp/events/task.py')
-rw-r--r-- | taskapp/events/task.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/taskapp/events/task.py b/taskapp/events/task.py index 308ed0f..f9dae13 100644 --- a/taskapp/events/task.py +++ b/taskapp/events/task.py @@ -223,3 +223,17 @@ def addCredits(task, given_by, given_to, points): 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 + + |