git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
202d322
)
Registration: FIX: Email content
author
Yasin
<mohammed-yasin.rahman@lip6.fr>
Thu, 26 Sep 2013 14:22:35 +0000
(16:22 +0200)
committer
Yasin
<mohammed-yasin.rahman@lip6.fr>
Thu, 26 Sep 2013 14:22:35 +0000
(16:22 +0200)
portal/registrationview.py
patch
|
blob
|
history
diff --git
a/portal/registrationview.py
b/portal/registrationview.py
index
7f7bab7
..
e756c3f
100644
(file)
--- a/
portal/registrationview.py
+++ b/
portal/registrationview.py
@@
-108,20
+108,22
@@
class RegistrationView (View):
# Send email
ctx = {
# Send email
ctx = {
- '
First N
ame' : reg_fname,
- '
Last N
ame' : reg_lname,
- '
Authority'
: reg_auth,
- '
E
mail' : reg_email,
- '
Public Key' :
public_key,
+ '
first_n
ame' : reg_fname,
+ '
last_n
ame' : reg_lname,
+ '
authority_hrn'
: reg_auth,
+ '
e
mail' : reg_email,
+ '
keypair' : 'Public Key :' +
public_key,
'cc_myself' : True # form.cleaned_data['cc_myself']
}
#not working
#recipients = authority_get_pi_emails(request,reg_auth)
recipients = ['devel@myslice.info']
if ctx['cc_myself']:
'cc_myself' : True # form.cleaned_data['cc_myself']
}
#not working
#recipients = authority_get_pi_emails(request,reg_auth)
recipients = ['devel@myslice.info']
if ctx['cc_myself']:
- recipients.append(ctx['
E
mail'])
+ recipients.append(ctx['
e
mail'])
msg = render_to_string('user_request_email.txt', ctx)
msg = render_to_string('user_request_email.txt', ctx)
+ print "tesing msg"
+ print msg
send_mail("Onelab New User request for %s submitted"%reg_email, msg, reg_email, recipients)
return render(request, 'user_register_complete.html')
send_mail("Onelab New User request for %s submitted"%reg_email, msg, reg_email, recipients)
return render(request, 'user_register_complete.html')