Hook up the Student Proposal Mailer in the cron/jobs module.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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.