Summary of individual events mail to all users.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 08 Dec 2009 12:21:09 +0530
changeset 48 bb835205604b
parent 47 668e7e0881b6
child 49 eaa881b6b5f3
Summary of individual events mail to all users.
project/templates/notifications/sprints_about_mail.html
scripts/mails.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/templates/notifications/sprints_about_mail.html	Tue Dec 08 12:21:09 2009 +0530
@@ -0,0 +1,48 @@
+Hello {{ name }},
+  The first edition of the Indian version of SciPy conference, dubbed
+SciPy.in 2009 is just 5 days away. Many of you have shown interests
+in attending all three events:  conference, tutorials and sprint. But
+some of you have been asking for a summary of what these individual
+events will be.
+
+   To make things clear, here is a short description of the three
+individual events. The main SciPy.in 2009 Conference will contain
+a number of presentations by both noted NumPy/SciPy developers and
+speakers like Dr.Travis Oliphant, Christopher Burns, Dr. David
+Cournapeau, Jarrod Millman, Dr.Prabhu Ramachandran as well as other
+speakers who are using these tools.
+
+   The two days of tutorials are aimed at people who want to learn to
+use NumPy/SciPy for their scientific and numerical computation to
+solve scientific and engineering problems in their domain. The
+tutorials will introduce participants to both Python as well as the
+scientific tool stack built on top of it. The tutorials require basic
+computer use experience. Bringing your own laptop is helpful, but not
+required.
+
+   Finally, the most exciting part of SciPy.in 2009 are sprints.
+Sprint provides you with an opportunity to contribute back to the
+Python scientific computing community. As we know NumPy/SciPy are
+open source tools and almost all open source softwares are driven by
+the community. So for these tools to succeed we want help from the
+community, i.e all of you people. This is an event where all of you
+sit together along with the developers, hack on one of these tools.
+If you are one of those guys who is interested in programming you can
+contribute by writing code, fixing bugs and sending those patches. If
+you are not interested in programming but more interested in writing,
+you can help the community with documentation efforts, including but
+not limited to writing documentation for NumPy/SciPy functions,
+creating spoken tutorials.
+
+   For the sprints it is required for you to bring your own laptops.
+Your laptop should have a working build system, with NumPy and SciPy
+built from source if you want to contribute by writing code. If you
+are willing to contribute to the documentation efforts it is
+sufficient to have a browser installed with your laptop having the
+capability of connecting to internet. If you want to create spoken
+tutorials be sure that you have a mic for recording and any software
+that can capture your desktop, for example, "istanbul" on GNU/Linux.
+
+--
+ Thanks,
+ SciPy.in Organizers
--- a/scripts/mails.py	Sat Dec 05 10:12:39 2009 +0530
+++ b/scripts/mails.py	Tue Dec 08 12:21:09 2009 +0530
@@ -9,9 +9,10 @@
 
 
 from django.template import loader
+from django.contrib.auth.models import User
 
+from project.kiwipycon.registration.models import Registration
 from project.kiwipycon.talk.models import Talk
-from django.contrib.auth.models import User
 
 
 def speaker_accepted():
@@ -67,4 +68,40 @@
             template, dictionary={'name': reg.username})
 
         reg.email_user(subject=subject, message=message,
-                       from_email='madhusudancs@gmail.com')
\ No newline at end of file
+                       from_email='madhusudancs@gmail.com')
+
+
+def delegate_about_event():
+    """Sends a mail to each confirmed delegate informing
+    them about the the individual events.
+    """
+
+    regs = Registration.objects.all()
+
+    template = 'notifications/sprints_about_mail.html'
+
+    for reg in regs:
+        subject = 'SciPy.in 2009: Details of the individual events'
+        message = loader.render_to_string(
+            template, dictionary={'name': reg.registrant.username})
+
+        reg.registrant.email_user(subject=subject, message=message,
+                                  from_email='madhusudancs@gmail.com')
+
+
+def speaker_confirmation():
+    """Sends a mail to each speaker asking for confirmation.
+    """
+
+    talks = Talk.objects.all()
+
+    template = 'notifications/speaker_confirmation_mail.html'
+
+    for talk in talks:
+        subject = 'SciPy.in 2009: Requesting for confirmation of your talk'
+        message = loader.render_to_string(
+            template, dictionary={'name': talk.speaker.username,
+                                  'title': talk.title})
+
+        talk.speaker.email_user(subject=subject, message=message,
+                                from_email='admin@scipy.in')