Hook up the Student Proposal Mailer in the cron/jobs module.
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 18 Apr 2009 21:22:43 +0000
changeset 2224 fc719e902a70
parent 2223 7b8b812aa146
child 2225 c6a0f935504c
Hook up the Student Proposal Mailer in the cron/jobs module. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/cron/job.py
--- a/app/soc/cron/job.py	Sat Apr 18 21:21:22 2009 +0000
+++ b/app/soc/cron/job.py	Sat Apr 18 21:22:43 2009 +0000
@@ -28,9 +28,9 @@
 from google.appengine.ext import db
 from google.appengine.runtime import DeadlineExceededError
 
+from soc.cron import student_proposal_mailer
 from soc.models.job import Job
 
-
 class Error(Exception):
   """Base class for all exceptions raised by this module.
   """
@@ -57,7 +57,10 @@
     """
 
     self.tasks = {}
-    self.tasks['sendAcceptanceEmail'] = logging.info
+    self.tasks['setupStudentProposalMailing'] = \
+        student_proposal_mailer.setupStudentProposalMailing
+    self.tasks['sendStudentProposalMail'] = \
+        student_proposal_mailer.sendStudentProposalMail
 
   def claimJob(self, job_key):
     """A transaction to claim a job.