sdi/events.py
author nishanth
Fri, 23 Jul 2010 14:36:26 +0530
branchanoop
changeset 168 dab8ae4c5d51
parent 165 29e92b23e198
child 170 8d01dc446ef3
permissions -rw-r--r--
thankyou template for wsp-ptc is now complete
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     1
from django.core.mail import send_mail
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     2
54
7515c2d1f5c5 fixed a typo error
nishanth
parents: 53
diff changeset
     3
def send_reg_complete_mail(email, first_name, last_name):
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     4
    """ send registration complete email to the registered user.
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     5
    """
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     6
118
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
     7
    subject = "Sage Days 25, India - Registration"
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     8
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     9
    message = """
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    10
Dear %s %s,
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    11
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    12
Thank you for registering on Sage Days 25, India. Since we have limited number of seats we will be mailing you the status of your registration shortly.
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    13
Meanwhile you may join the Sage Days mailing list/group at [http://groups.google.com/group/sagedays25].
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    14
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    15
Registration Fee:
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    16
There is a registration fee of Rs.200/- and it can be paid on reporting at the conference.
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    17
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    18
Accommodation:
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    19
The accommodation for delegates is limited and hence you shall be notified on the status of your accommodation(if required) soon.
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    20
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    21
Queries:
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    22
Feel free to contact us at sagedays@fossee.in for any queries.
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    23
73
dab739f4381a updated the registration email content
nishanth
parents: 56
diff changeset
    24
If you did not register for Sage Days 25, please ignore this mail and report the incident to sagedays@fossee.in
dab739f4381a updated the registration email content
nishanth
parents: 56
diff changeset
    25
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    26
Thanking you,
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    27
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    28
Sage Days India Team,
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    29
FOSSEE, IIT Bombay.
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    30
    """%(first_name.title(), last_name.title())
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    31
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    32
    send_mail(subject, message, "sagedays@fossee.in", [email])
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    33
163
b23792dfea3d fixed a typo
nishanhth
parents: 162
diff changeset
    34
def send_wsp_ptc_confirm(user):
162
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    35
    """ send a mail telling a worksho has been scheduled.
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    36
    """
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    37
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    38
    subject = "Sage Days 25, India - Python Workshop"
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    39
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    40
    message = """
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    41
Dear %s %s,
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    42
165
29e92b23e198 updated email and template
nishanth
parents: 164
diff changeset
    43
We are conducting a one day workshop for people who are new to Python.
164
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    44
The objective of this workshop is to get people started with Python so that they can make most out of Sage Dasy 25.
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    45
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    46
Date: 31 July, 2010
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    47
Duration: 9:00 AM - 6:00 PM
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    48
Venue: CFD Lab, Aero Annex, Aerospace Department, IIT Bombay
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    49
Pre Requisites: Fresh and Open mind
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    50
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    51
We shall be giving laptops to people who do not have. But they will be given on First Come First Serve basis and are very limited in number. Hence you are advised to bring your own laptop. http://fossee.in/installation-how-to has the instructions on installing the software that is used in the workshop.
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    52
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    53
Lunch and refreshments will be provided at the venue itself.
162
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    54
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    55
Please click the link below or paste it in a browser to confirm your participation.
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    56
http://fossee.in/sage_days/registration/cnf_wsp_ptc/%s?email=%s
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    57
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    58
Please ignore this mail if you are not likely to attend the workshop.
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    59
165
29e92b23e198 updated email and template
nishanth
parents: 164
diff changeset
    60
PS: If anyone who has not registered for Sage Days or not requested a workshop but is interested in attending, drop a mail to sagedays@fossee.in and we will be happy to have them also at the workshop.
164
a55636fd7dbd updated the email matter
nishanth
parents: 163
diff changeset
    61
162
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    62
Thanking you,
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    63
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    64
Sage Days India Team,
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    65
FOSSEE, IIT Bombay.
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    66
    """%(user.first_name.title(), user.last_name.title(), user.id, user.email)
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    67
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    68
    send_mail(subject, message, "sagedays@fossee.in", [user.email])
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    69
27dd4494e7b4 created the mail event and added it in view for send_wsp_ptc
nishanhth
parents: 148
diff changeset
    70
137
02a5304a2c5f fixed a typo and corrected at various places accordingly
nishanth
parents: 119
diff changeset
    71
def send_sgd_ptc_confirm(user):
118
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    72
    """ send a mail telling that you have been selected to attend sage days.
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    73
    """
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    74
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    75
    subject = "Sage Days 25, India - Selected for participation"
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    76
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    77
    message = """
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    78
Dear %s %s,
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    79
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    80
You have been selected to attend Sage Days 25, India.
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    81
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    82
Please click the link below or paste it in a browser to confirm your participation.
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    83
http://fossee.in/sage_days/registration/cnf_sgd_ptc/%s?email=%s
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    84
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    85
Please ignore this mail if you are not likely to attend Sage Days 25, India.
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    86
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    87
PS:
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    88
Your participation will be confirmed only if you visit the link above at the latest by 26 July, 2010.
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    89
If you by any chance have not confirmed your participation by 26 July,  2010 and still want to participate, write a mail to sagedays@fossee.in
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    90
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    91
Thanking you,
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    92
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    93
Sage Days India Team,
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    94
FOSSEE, IIT Bombay.
119
eecbb1e59a3a fixed a typo
nishanth
parents: 118
diff changeset
    95
    """%(user.first_name.title(), user.last_name.title(), user.id, user.email)
118
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    96
119
eecbb1e59a3a fixed a typo
nishanth
parents: 118
diff changeset
    97
    send_mail(subject, message, "sagedays@fossee.in", [user.email])
118
6c3602582f9f included the send_mail and created the corresponding event in events
nishanth
parents: 73
diff changeset
    98
148
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
    99
def send_cnf_email(user):
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   100
    """ send email so that it can be shown at the gate in IIT
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   101
    """
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   102
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   103
    subject = "Sage Days 25, India - Thankyou for confirming participation"
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   104
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   105
    message = """
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   106
Dear %s %s,
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   107
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   108
Thank you for confirming your participation in Sage Days 25, India.
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   109
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   110
Please carry a copy of this email, to be shown at the security outpost to enter IIT Bombay.
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   111
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   112
PS: Take a pass for your Laptop/Camera while entering into the campus.
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   113
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   114
Thanking you,
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   115
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   116
Sage Days India Team,
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   117
FOSSEE, IIT Bombay.
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   118
    """%(user.first_name.title(), user.last_name.title())
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   119
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   120
    send_mail(subject, message, "sagedays@fossee.in", [user.email])
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   121
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   122
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   123
f986e4fee615 created mail that should be shown to enter IIT for sgedays
nishanth
parents: 137
diff changeset
   124
56
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   125
def mail_invi(to_emails):
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   126
    """ send the invitation email to given email addresses.
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   127
    """
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   128
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   129
    subject = "Invitation to Sage Days 25, India"
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   130
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   131
    message = """
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   132
Sage Days 25 - An Invitation
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   133
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   134
What is 'Sage Days'?
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   135
Sage Days is a confluence of present and prospective SAGE Users and Developers. It is an opportunity to come together to share ideas,
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   136
brainstorm and hack on Sage.
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   137
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   138
Sage Days 25 is the 25th version of Sage Days, and is being organized in Mumbai, India. In order to cater to an Indian audience and scenario, this version has been tweaked slightly. Sage Days 25 has beginner level tutorials, in addition to the usual talks and sprints, to help new users get started with Sage and help promote the use of Sage in India.
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   139
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   140
What is Sage?
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   141
Sage is a free, open-source mathematics software system licensed under the GPL. It combines the power of numerous existing open-source packages into a common Python-based interface. It's mission is to create a "viable free open source alternative to Magma, Maple, Mathematica and Matlab".
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   142
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   143
Sage has tools for a broad range of mathematical areas like Linear Algebra, Calculus, Symbolic Math,  Plotting, Rings & Groups, Graph Theory, Number Theory and Cryptography. Essentially, "it can do anything from mapping a 12-dimensional object to calculating rainfall patterns under global warming" - as Science Daily puts it . Eager to get started? Start here. [#1]
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   144
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   145
Apart from being feature rich, it's usability is one of it's greatest strengths. Sage Notebook, a web-interface for all the math you'll ever want to do, is really the killer feature! As the Sage Marketing page says, "The SAGE GUI surely works on your computer box, because it just runs in Firefox!".  Try it Now! [#2]
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   146
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   147
Why should you attend?
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   148
Sage Days 25 is being attended by the creator and lead developer of Sage, Prof. William Stein. It will also be attended by other developers of Sage. This would be a great opportunity to meet and interact with them!
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   149
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   150
The conference will be attended by a plethora of enthusiastic people from all over the country who use Sage or are interested in doing so. The conference will also see the presence of many mathematicians interested in software. Who knows, you may run into someone you'd want to collaborate with, for your future work!
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   151
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   152
This event will be a great learning experience, if you are even remotely interested in math and software for it!
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   153
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   154
When and Where?
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   155
Venue: IIT-Bombay, Mumbai, India
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   156
Dates: August 9-12, 2010
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   157
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   158
Tentative Schedule: http://fossee.in/sage_days/schedule/
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   159
Register Here: http://fossee.in/sage_days/registration/register/
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   160
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   161
[#1] http://www.sagemath.org/tour.html
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   162
[#2] http://www.sagenb.org/
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   163
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   164
--
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   165
Sage Days India Team,
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   166
FOSSEE, IIT Bombay.
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   167
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   168
"""
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   169
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   170
    for emails in to_emails:
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   171
        send_mail(subject, message, "sagedays@fossee.in", emails)
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
   172