# HG changeset patch # User Madhusudan.C.S # Date 1290087264 -19800 # Node ID 2ea8af6851c90c2f57eab3ed1d2f8767ad6d8482 # Parent b203f1792ed2b528476733a473da6850b37fa146 Modify the delegate_remainder function to send mails for the registered user and add content for registration update mail. diff -r b203f1792ed2 -r 2ea8af6851c9 project/templates/notifications/regpaymentaccolaptop2010.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/project/templates/notifications/regpaymentaccolaptop2010.html Thu Nov 18 19:04:24 2010 +0530 @@ -0,0 +1,71 @@ +Hello {{ name }}, + +The SciPy.in team is glad that you have registered for SciPy.in 2010, +to be held at International Institute of Information Technology, +Hyderabad. + +We would like to inform you that we have updated the information about +registration and accommodation fees and payment methods for the same, +on the website. Please find these details at +http://scipy.in/scipyin/2010/about/fees/ + +Due to some requests, we have decided to provide accommodation to a +limited number of out-station participants on a first-come-first-serve +basis. So, if you are an out-station participant and require +accommodation, please fill in your details and send us your fees as +early as possible. + +Your registration for the conference is not confirmed until you pay the +registration fees. If you requested for accommodation, your +accommodation can be confirmed only after we receive your accommodation +fees, based on the availability. It is not confirmed, until you receive +a confirmation mail from our side. + +Also, if you are bringing your own laptop for the conference, please +update the details of the same, in the registration form. + +To update all or any of the information indicated above, follow the +steps below: + +1. Login to your account on http://scipy.in. If you are unable to login + to your account through which you previously registered please + contact admin@scipy.in. We request you not to duplicate the + registrations. + +2. Click on "Registration" link on the left sidebar which takes you to + your registration summary page. + +3. Click on the "Edit Registration" link on that page which takes you + to your original registration form you submitted. + +4. Now you can see two new sections titled "Accommodation" and + "Payment" below the "Demographics" section. + +5. Please check the box if you need accommodation and select your + gender and number of days for which you need the accommodation. + +6. If you have already made the payment as instructed in the Fees page, + please check the "Paid" field and provide additional information + about your payment as mentioned on the registration page. Once + the payment is received you will receive a confirmation email from + the organizers. + +7. In the laptop section you will see a new field called + "Identification Number". If you are getting your own laptop select + "Yes" in the laptop dropdown field and provide us with the Serial + Number/Service Tag Number/Express Service Code of your laptop + using which your laptop can be uniquely identified. This is usually + present at the back of the laptop. Please DONOT give us the Laptop + make and model number such as "Dell Inspiron 1545". + + For example, the unique number for Dell laptops may be service tag + number like "8FRT7RDE" + +8. Submit the registration form to update the details. + +The registration and accommodation fees have to be paid as soon as +possible for us to confirm your registration for the conference. Please +note that there is a limit for the number of registrations. So Hurry! + +Thanks and regards, +Scipy Team diff -r b203f1792ed2 -r 2ea8af6851c9 scripts/mails.py --- a/scripts/mails.py Thu Nov 18 18:47:42 2010 +0530 +++ b/scripts/mails.py Thu Nov 18 19:04:24 2010 +0530 @@ -53,22 +53,19 @@ from_email='admin@scipy.in') -def delegate_remainder(): - """Sends a mail to each speaker whose talk has been accepted - informing them about the their sponsorship. +def delegate_remainder(template=None): + """Sends a mail to each delegate about the template content specified. """ - regs = User.objects.all() - - template = 'notifications/reminder_mail.html' + regs = Registration.objects.all() for reg in regs: - subject = 'SciPy.in 2009: Remainder and details' + subject = 'SciPy.in 2010: Registration updates required for confirmation' message = loader.render_to_string( - template, dictionary={'name': reg.username}) + template, dictionary={'name': reg.registrant.get_full_name()}) - reg.email_user(subject=subject, message=message, - from_email='madhusudancs@gmail.com') + reg.registrant.email_user(subject=subject, message=message, + from_email='info@scipy.in') def delegate_about_event():