summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202019-11-06 15:23:11 +0530
committerSashi202019-11-06 15:23:11 +0530
commitbcab4c61c2f5c6ce674d11256e90098bdc00d669 (patch)
treebdcc66dab468dd05f8147655d92cd9976c2ea8e8
parente9c559bd8d8ef5e729acd6ed5051335079b294b8 (diff)
downloadSciPy2019-bcab4c61c2f5c6ce674d11256e90098bdc00d669.tar.gz
SciPy2019-bcab4c61c2f5c6ce674d11256e90098bdc00d669.tar.bz2
SciPy2019-bcab4c61c2f5c6ce674d11256e90098bdc00d669.zip
Modify email templates of rejected proposals
-rw-r--r--website/views.py46
1 files changed, 16 insertions, 30 deletions
diff --git a/website/views.py b/website/views.py
index daeb3b5..cef071a 100644
--- a/website/views.py
+++ b/website/views.py
@@ -750,7 +750,7 @@ Thank You ! \n\nRegards,\nSciPy India 2019 Program Chairs,\nFOSSEE - IIT Bombay.
headers={"Content-type": "text/html;charset=iso-8859-1"}
)
#email.attach_alternative(message, "text/html")
- email.send(fail_silently=True)
+ email.send(fail_silently=True)
#send_mail(subject, message, sender_email, to)
# context.update(csrf(request))
proposals = Proposal.objects.all()
@@ -768,44 +768,30 @@ Thank You ! \n\nRegards,\nSciPy India 2019 Program Chairs,\nFOSSEE - IIT Bombay.
sender_email = TO_EMAIL
cc_email = CC_EMAIL
bcc_email = BCC_EMAIL
- to = (proposal.user.email)
+ to = [proposal.user.email]
if proposal.proposal_type == 'ABSTRACT':
subject = "SciPy India 2019 - Talk Proposal Rejected"
message = """Dear """+proposal.user.first_name+""",\n
-Thank you for your submission to the conference. Unfortunately, due to a large number of excellent talks that were submitted, your talk was not selected. We hope you are not discouraged and request you to kindly attend the conference and participate. We have an excellent line up of workshops (8 in total) and many excellent talks. If you wish to give a lightning talk (a short 5 minute talk) at the conference please let us know on the day of the conference.
-
-We look forward to your active participation in the conference.
-Thank You ! \n\nRegards,\nSciPy India 2019,\nFOSSEE - IIT Bombay."""
- # message = """Dear """+proposal.user.first_name+""",
- # Your talk was rejected because the contents of your work (your report for example) were entirely plagiarized. This is unacceptable and this amounts to severe academic malpractice and misconduct. As such we do not encourage this at any level whatsoever. We strongly suggest that you change your ways. You should NEVER EVER copy paste any content, no matter where you see it. Even if you cite the place where you lifted material from, it is not acceptable to copy anything verbatim. Always write in your own words. Your own personal integrity is much more important than a publication. When giving a tutorial it is understandable that you may use material that someone else has made if you acknowledge this correctly and with their full knowledge. However, the expectation is that you have done something yourself too. In your case a bulk of the work seems plagiarized and even if your talk material is your own, your act of plagiarizing content for your report is unacceptable to us.
-
- # Having said that, we do encourage you to attend the conference. We hope you do change your ways and be honest in the future.
+Thank you for your submission to the conference. Unfortunately, due to a large number of excellent talks that were submitted, your talk was not selected. We hope you are not discouraged and request you to kindly attend the conference and participate. We have an excellent line up of workshops (12 in total) and many excellent talks. If you wish to give a lightning talk (a short 5 minute talk) at the conference please let us know on the day of the conference.
- # \n\nRegards,\n\nSciPy India Program chairs"""
+We look forward to your active participation in the conference.
+
+Thank You! \n\nRegards,\nSciPy India 2019 Program Chairs,\nFOSSEE - IIT Bombay."""
elif proposal.proposal_type == 'WORKSHOP':
subject = "SciPy India 2019 - Workshop Proposal Rejected"
message = """Dear """+proposal.user.first_name+""",\n
-Thank you for your submission to the conference. Unfortunately, due to a large number of excellent workshops submitted, yours was not selected. We hope you are not discouraged and request you to kindly attend the conference and participate. We have an excellent line up of workshops (8 in total) and many excellent talks. If you wish to give a lightning talk (a short 5 minute talk) at the conference please let us know on the day of the conference.
+Thank you for your submission to the conference. Unfortunately, due to a large number of excellent workshops submitted, yours was not selected. We hope you are not discouraged and request you to kindly attend the conference and participate. We have an excellent line up of workshops (12 in total) and many excellent talks. If you wish to give a lightning talk (a short 5 minute talk) at the conference please let us know on the day of the conference.
We look forward to your active participation in the conference.
-Thank You ! \n\nRegards,\nSciPy India 2019,\nFOSSEE - IIT Bombay."""
- # message = """Dear """+proposal.user.first_name+""",
- # Thank you for your excellent workshop submission titled “Digital forensics using Python”. The program committee was really excited about your proposal and thought it was a very good one. While the tools you use are certainly in the SciPy toolstack the application was not entirely in the domain of the attendees we typically have at SciPy. This along with the fact that we had many really good workshops that were submitted made it hard to select your proposal this time -- your proposal narrowly missed out. We strongly suggest that you submit this to other more generic Python conferences like the many PyCon and PyData conferences as it may be a much better fit there. We also encourage you to try again next year and if we have a larger audience, we may have space for it next year. This year with two tracks we already have 8 excellent workshops selected.
-
- # We really hope you are not discouraged as it was indeed a very good submission and a rather original one at that. We hope you understand and do consider participating in the conference anyway.
-
- # We look forward to seeing you at the conference and to your continued interest and participation.
- # \n\nRegards,\n\nSciPy India Program chairs"""
- #send_mail(subject, message, sender_email, to)
- # context.update(csrf(request))
+Thank You! \n\nRegards,\nSciPy India 2019 Program Chairs,\nFOSSEE - IIT Bombay."""
email = EmailMultiAlternatives(
- subject, message,
- sender_email, [to], cc=[cc_email], bcc = [bcc_email],
- headers={"Content-type": "text/html;charset=iso-8859-1"}
- )
- #email.attach_alternative(message, "text/html")
- email.send(fail_silently=True)
+ subject, message,
+ sender_email, to = [to], cc=[cc_email], bcc = [bcc_email],
+ headers={"Content-type": "text/html;charset=iso-8859-1"}
+ )
+ #email.attach_alternative(message, "text/html")
+ email.send(fail_silently=True)
proposals = Proposal.objects.all()
context['proposals'] = proposals
context['user'] = user
@@ -850,8 +836,8 @@ Thank You ! \n\nRegards,\nSciPy India 2019,\nFOSSEE - IIT Bombay.
sender_email, to,
headers={"Content-type": "text/html;charset=iso-8859-1"}
)
- email.attach_alternative(message, "text/html")
- email.send(fail_silently=True)
+ #email.attach_alternative(message, "text/html")
+ #email.send(fail_silently=True)
proposal.status = "Edit"
proposal.save()
# context.update(csrf(request))