sdi/events.py
author nishanth
Mon, 07 Jun 2010 15:50:01 +0530
branchanoop
changeset 70 58cafee2ee89
parent 56 7dfacad8adee
child 73 dab739f4381a
permissions -rw-r--r--
now only logged in users can logout
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
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
     7
    subject = "Sage Days India 25 - Registration"
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
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    24
Thanking you,
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    25
55
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    26
Sage Days India Team,
1091f42e4a41 updated the whitespace
nishanth
parents: 54
diff changeset
    27
FOSSEE, IIT Bombay.
53
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    28
    """%(first_name.title(), last_name.title())
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    29
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    30
    send_mail(subject, message, "sagedays@fossee.in", [email])
b226923fbf64 added send_mail after registration
nishanth
parents:
diff changeset
    31
56
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    32
def mail_invi(to_emails):
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    33
    """ send the invitation email to given email addresses.
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    34
    """
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    35
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    36
    subject = "Invitation to Sage Days 25, India"
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    37
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    38
    message = """
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    39
Sage Days 25 - An Invitation
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    40
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    41
What is 'Sage Days'?
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    42
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
    43
brainstorm and hack on Sage.
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    44
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    45
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
    46
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    47
What is Sage?
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    48
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
    49
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    50
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
    51
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    52
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
    53
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    54
Why should you attend?
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    55
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
    56
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    57
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
    58
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    59
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
    60
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    61
When and Where?
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    62
Venue: IIT-Bombay, Mumbai, India
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    63
Dates: August 9-12, 2010
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    64
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    65
Tentative Schedule: http://fossee.in/sage_days/schedule/
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    66
Register Here: http://fossee.in/sage_days/registration/register/
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    67
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    68
[#1] http://www.sagemath.org/tour.html
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    69
[#2] http://www.sagenb.org/
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    70
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    71
--
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    72
Sage Days India Team,
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    73
FOSSEE, IIT Bombay.
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    74
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    75
"""
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    76
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    77
    for emails in to_emails:
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    78
        send_mail(subject, message, "sagedays@fossee.in", emails)
7dfacad8adee provided an interface for sending out emails
nishanth
parents: 55
diff changeset
    79