X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Factions.py;h=2e567669ad14406c910257324aa53f75e67f898d;hb=36782e4a0fc3872b2d47b3c5dfc81e87450014f9;hp=cea79eb1089b9c9fcb79250bb8a85a0b78c6275d;hpb=bddaae13234f2d36f16098b756006e77a2e409f5;p=unfold.git diff --git a/portal/actions.py b/portal/actions.py index cea79eb1..2e567669 100644 --- a/portal/actions.py +++ b/portal/actions.py @@ -656,6 +656,7 @@ def create_pending_user(wsgi_request, request, user_detail): user_hrn = request['user_hrn'], pi = request['pi'], email_hash = request['email_hash'], + reasons = request['reasons'], status = 'False', ) b.save() @@ -759,6 +760,7 @@ def create_pending_user(wsgi_request, request, user_detail): msg.attach_alternative(html_content, "text/html") msg.send() + print pi_emails except Exception, e: print "Failed to send email, please check the mail templates and the SMTP configuration of your server" import traceback