Fixed a bug. anoop tip
authorAnoop Jacob Thomas<anoop@fossee.in>
Tue, 09 Nov 2010 13:40:41 +0530
branchanoop
changeset 248 73ad1c61bb74
parent 247 6fd2e9275805
Fixed a bug.
sdi/events.py
--- a/sdi/events.py	Tue Nov 09 13:29:23 2010 +0530
+++ b/sdi/events.py	Tue Nov 09 13:40:41 2010 +0530
@@ -31,6 +31,39 @@
 
     send_mail(subject, message, "sagedays@fossee.in", [email])
 
+def send_rwd_email(inc):
+    
+    user = inc.registrant
+    sub = "Sage Days - Reward for participation in sprints"
+
+    msg = """
+Dear %s, 
+
+Thank you for your enthusiastic participation in Sage days 25. 
+
+You have made a significant contribution during sprints and as promised, you have been selected to receive the following in appreciation of your efforts.
+A cash prize of Rs.%s %s
+
+We would be sending the money as DD and hence need your name as it is in your account.
+
+The details you have entered while registering are as follows.
+
+Name: %s
+Address: %s
+
+If you would like to change these details, please click this link http://fossee.in/sage_days/registration/cnf_addr/%s?email=%s and update your name and address at the latest by 20:00 IST 7th September, 2010
+
+We hope this reward will encourage you to continue your contribution towards Open Source in general and SAGE in particular.
+
+Thanking You,
+
+Sage Days India Team,
+FOSSEE, IIT Bombay.
+
+"""%(user, inc.amount, " and a tshirt" if inc.t_shirt else "", user, user.address, user.id, user.email)
+
+    send_mail(sub, msg, "sagedays@fossee.in", [user.email])
+
 def send_wsp_ptc_confirm(user):
     """ send a mail telling a worksho has been scheduled.
     """
@@ -321,7 +354,7 @@
 
 * Prabhu Ramachandran -- PhD, IIT Madras.  Currently a faculty member at IIT Bombay.  He is the co-founder of the Indian Linux User Group - Chennai (ILUGC) and is the creator and lead developer of the (FOSS-India-award-winning) Mayavi and TVTK Python packages (http://code.enthought.com/projects/mayavi). Currently heads the FOSSEE (http://fossee.in) project.
 
-* Stéfan van der Walt -- PhD, Stellenbosch University, SA. Currently a researcher and lecturer in Applied Mathematics at Stellenbosch University.  One of the developers of the NumPy and SciPy packages.
+* Stefan van der Walt -- PhD, Stellenbosch University, SA. Currently a researcher and lecturer in Applied Mathematics at Stellenbosch University.  One of the developers of the NumPy and SciPy packages.
 
 * Jarrod Millman -- Member of the SciPy steering committee and an active contributor to both the NumPy and SciPy projects. He is the acting managing director and the director of computing for UC Berkeley's Neuroscience Institute, where he helped found the Neuroimaging in Python (NiPy) project.