scripts/mails.py
changeset 359 9640495f5097
parent 284 291f4bb93888
child 389 fe49720e67bf
--- a/scripts/mails.py	Fri Dec 10 16:05:09 2010 +0530
+++ b/scripts/mails.py	Fri Dec 10 18:41:40 2010 +0530
@@ -10,11 +10,19 @@
 
 from django.template import loader
 from django.contrib.auth.models import User
+from django.utils.translation import ugettext
 
 from project.scipycon.registration.models import Registration
 from project.scipycon.talk.models import Talk
 
 
+DEF_REMAINDER_REGISTRATION_PAGE_SUBJECT = ugettext(
+  'SciPy.in 2010: Registration updates required for confirmation')
+
+DEF_REMAINDER_ACCO_CONTACT_SUBJECT = ugettext(
+   'SciPy.in 2010: Contact details, registration page and other updates')
+
+
 def speaker_accepted():
     """Sends a mail to each speaker whose talk has been accepted
     informing them about the same.
@@ -60,7 +68,7 @@
     regs = Registration.objects.all()
 
     for reg in regs:
-        subject = 'SciPy.in 2010: Registration updates required for confirmation'
+        subject = DEF_REMAINDER_ACCO_CONTACT_SUBJECT
         message = loader.render_to_string(
             template, dictionary={'name': reg.registrant.get_full_name()})