summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12014-06-17 13:02:58 +0530
committerhardythe12014-06-17 13:02:58 +0530
commit54108e67c18e87e34cd5adb831958c7b622be763 (patch)
treeddb7e113cb8c6d7167a43d5639b7878e23bc8e62
parent810be42c862956cf4d8bf0bd03b3e8f172c87798 (diff)
downloadPython-TBC-Interface-54108e67c18e87e34cd5adb831958c7b622be763.tar.gz
Python-TBC-Interface-54108e67c18e87e34cd5adb831958c7b622be763.tar.bz2
Python-TBC-Interface-54108e67c18e87e34cd5adb831958c7b622be763.zip
correctin indentation to match with the file
-rwxr-xr-xtbc/views.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 2e57632..860161a 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -15,16 +15,16 @@ from email.mime.text import MIMEText
def email_send(to,subject,msg):
- try:
- smtpObj = smtplib.SMTP('localhost')
- mail_from = "textbook@fosse.in"
- message = MIMEText(msg)
- message['Subject'] = subject
- message['From'] = mail_from
- message['to'] = to
- smtpObj.sendmail(mail_from, to, message.as_string())
- except SMTPException:
- return HttpResponse("Error:unable to send email")
+ try:
+ smtpObj = smtplib.SMTP('localhost')
+ mail_from = "textbook@fosse.in"
+ message = MIMEText(msg)
+ message['Subject'] = subject
+ message['From'] = mail_from
+ message['to'] = to
+ smtpObj.sendmail(mail_from, to, message.as_string())
+ except SMTPException:
+ return HttpResponse("Error:unable to send email")
def is_reviewer(user):
@@ -59,8 +59,8 @@ def AboutPytbc(request):
def TemporarilyUnavailable(request):
- context = {}
- return render_to_response('tbc/unavailable.html', context)
+ context = {}
+ return render_to_response('tbc/unavailable.html', context)
def Home(request):