translate most modules to using print() as imported from __future__
[myslice.git] / portal / joinview.py
index 721efcf..77ce66a 100644 (file)
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
 import os.path, re
 import json
 from random import randint
@@ -173,7 +175,7 @@ class JoinView (FreeAccessView, ThemeView):
                     'user_hrn'      : user_hrn,
                     'pi'            : [reg_auth],
                     'auth_type'     : 'managed',
-                    'validation_link': 'https://' + current_site + '/portal/email_activation/'+ email_hash
+                    'validation_link': current_site + '/portal/email_activation/'+ email_hash
                 }
 
                 
@@ -229,7 +231,7 @@ class JoinView (FreeAccessView, ThemeView):
                     msg.send()
     
                 except Exception, e:
-                    print "Failed to send email, please check the mail templates and the SMTP configuration of your server"
+                    print("Failed to send email, please check the mail templates and the SMTP configuration of your server")
                     import traceback
                     traceback.print_exc()