taskapp/events/task.py
changeset 105 091b044a3bf4
parent 99 64c34c1f441f
child 111 c272d4c601cd
--- a/taskapp/events/task.py	Thu Feb 25 23:49:38 2010 +0530
+++ b/taskapp/events/task.py	Fri Feb 26 00:17:54 2010 +0530
@@ -75,6 +75,12 @@
     
     main_task.save()
 
+def reqMentor(task, mentor, req_by):
+    """ create a request object with role as MT.
+    """
+
+    create_request(sent_by=req_by, role="MT", sent_to=mentor, task=task) 
+
 def addMentor(task,mentor):
     """ add the mentor to mentors list of the task """