taskapp/events/task.py
changeset 99 64c34c1f441f
parent 96 2881ed1c52b0
child 105 091b044a3bf4
--- a/taskapp/events/task.py	Thu Feb 25 17:37:14 2010 +0530
+++ b/taskapp/events/task.py	Thu Feb 25 17:56:42 2010 +0530
@@ -1,5 +1,6 @@
 from datetime import datetime
 from pytask.taskapp.models import Profile, Task, Comment, Credit, Claim, Map
+from pytask.taskapp.utilities.request import create_request
 
 def publishTask(task):
     """ set the task status to open """
@@ -194,7 +195,7 @@
     """ make a proper request object.
     """
     
-    addCredits(task, given_by, given_to, points)
+    create_request(sent_by=given_by, role="PY", task=task, receiving_user=given_to, pynts=points ) 
 
 def addCredits(task, given_by, given_to, points):
     """ add credit to the credits model.