summaryrefslogtreecommitdiffstats
path: root/virtualenv/pffedportal
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2012-07-04 10:09:13 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2012-07-04 10:09:13 (GMT)
commit06573d4808596a2d22a2ab61834cdca3c3f9a566 (patch)
tree0bafcaf424f1c47ba80dfc43457ca75874524e1f /virtualenv/pffedportal
parenteb9d229ef92158757ee1d46057b90f82b633dd1a (diff)
downloadunivnautes-old-06573d4808596a2d22a2ab61834cdca3c3f9a566.zip
univnautes-old-06573d4808596a2d22a2ab61834cdca3c3f9a566.tar.gz
univnautes-old-06573d4808596a2d22a2ab61834cdca3c3f9a566.tar.bz2
mailform: clean
Diffstat (limited to 'virtualenv/pffedportal')
-rw-r--r--virtualenv/pffedportal/base/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/virtualenv/pffedportal/base/views.py b/virtualenv/pffedportal/base/views.py
index 117c349..a6ab93d 100644
--- a/virtualenv/pffedportal/base/views.py
+++ b/virtualenv/pffedportal/base/views.py
@@ -139,7 +139,6 @@ def logout(request):
return redirect('/login')
def mail(request):
- # FIXME 3 access per hour (check cookie "lastmails")
if request.method == 'POST':
form = MailForm(request.POST)
if form.is_valid():
@@ -151,7 +150,7 @@ def mail(request):
n_subject = form.cleaned_data['subject']
subject = dict(EMAIL_SUBJECTS_CHOICES).get(n_subject, 'unknown subject ?')
body = form.cleaned_data['body']
- total_body = u'From: %(name)s <%(from_email)s>\nPhone: %(phone)s\n' \
+ total_body = u'Nom: %(name)s <%(from_email)s>\nTel: %(phone)s\n' \
'IdP: %(idp_name)s <%(idp)s>\n\n' \
'Message:\n%(body)s\n\n-- \nUnivNautes\n' % {
'name': name, 'from_email': from_email,
@@ -167,7 +166,6 @@ def mail(request):
except Exception, e:
messages.add_message(request, messages.ERROR, 'send_mail error: %s' % e)
else:
- # FIXME store cookie "lastmails"
response = redirect('.')
return response
else: