translate most modules to using print() as imported from __future__
[unfold.git] / portal / homeview.py
index 214bd7f..9b98e2b 100644 (file)
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
 # this somehow is not used anymore - should it not be ?
 from django.core.context_processors     import csrf
 from django.http                        import HttpResponseRedirect
@@ -61,7 +63,7 @@ class HomeView (FreeAccessView, ThemeView):
         elif auth_result is not None:
             user=auth_result
             if user.is_active:
-                print "LOGGING IN"
+                print("LOGGING IN")
                 login(request, user)
                 
                 if request.user.is_authenticated(): 
@@ -95,7 +97,7 @@ class HomeView (FreeAccessView, ThemeView):
                     #else:
                     #    pi = "is_pi"
                     user_email = str(self.request.user)                   
-                    pi = authority_check_pis(self.reques, user_email)
+                    pi = authority_check_pis(self.request, user_email)
 
                     # check if the user has creds or not
                     if acc_user_cred == {} or acc_user_cred == 'N/A':