Change name of login_request variable in access.py module to login_response.
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- a/app/soc/views/helper/access.py Thu Oct 16 13:16:46 2008 +0000
+++ b/app/soc/views/helper/access.py Thu Oct 16 13:18:59 2008 +0000
@@ -74,10 +74,10 @@
if users.get_current_user():
return
- login_request = requestLogin(request, DEF_LOGIN_TMPL,
+ login_response = requestLogin(request, DEF_LOGIN_TMPL,
login_message_fmt=DEF_LOGIN_MSG_FMT)
- raise soc.views.out_of_band.AccessViolationResponse(login_request)
+ raise soc.views.out_of_band.AccessViolationResponse(login_response)
def checkIsUser(request):
@@ -103,10 +103,10 @@
if user:
return
- login_request = requestLogin(request, DEF_LOGIN_TMPL,
+ login_response = requestLogin(request, DEF_LOGIN_TMPL,
login_message_fmt=DEF_NO_USER_LOGIN_MSG_FMT)
- raise soc.views.out_of_band.AccessViolationResponse(login_request)
+ raise soc.views.out_of_band.AccessViolationResponse(login_response)
def checkIsDeveloper(request):
@@ -135,10 +135,10 @@
'role' : 'a site developer ',
}
- login_request = requestLogin(request, DEF_LOGIN_TMPL,
+ login_response = requestLogin(request, DEF_LOGIN_TMPL,
login_message_fmt=login_message_fmt)
- raise soc.views.out_of_band.AccessViolationResponse(login_request)
+ raise soc.views.out_of_band.AccessViolationResponse(login_response)
def checkIsHost(request, program):
@@ -168,7 +168,7 @@
'role' : 'a host for this program',
}
- login_request = requestLogin(request, DEF_LOGIN_TMPL,
+ login_response = requestLogin(request, DEF_LOGIN_TMPL,
login_message_fmt=login_message_fmt)
- raise soc.views.out_of_band.AccessViolationResponse(login_request)
+ raise soc.views.out_of_band.AccessViolationResponse(login_response)