Missing changes to soc.views.helper.access
Due to having to manually do the 'svn mv' of logic to helper,
the changes to access.py got lost, this commit fixes that.
Patch by: Sverre Rabbelier
Reviewed by: to-be-reviewed
--- a/app/soc/views/helper/access.py Sun Oct 12 14:58:47 2008 +0000
+++ b/app/soc/views/helper/access.py Sun Oct 12 15:05:50 2008 +0000
@@ -34,10 +34,9 @@
from django.utils.translation import ugettext_lazy
import soc.logic.host
-import soc.logic.out_of_band
-
+from soc.logic.site import id_user
from soc.views.simple import requestLogin
-from soc.logic.site import id_user
+import soc.views.out_of_band
DEF_LOGIN_TMPL = 'soc/login.html'
@@ -76,7 +75,7 @@
login_request = requestLogin(request, DEF_LOGIN_TMPL,
login_message_fmt=DEF_LOGIN_MSG_FMT)
- raise soc.logic.out_of_band.AccessViolationResponse(login_request)
+ raise soc.views.out_of_band.AccessViolationResponse(login_request)
def checkIsUser(request):
@@ -105,7 +104,7 @@
login_request = requestLogin(request, DEF_LOGIN_TMPL,
login_message_fmt=DEF_NO_USER_LOGIN_MSG_FMT)
- raise soc.logic.out_of_band.AccessViolationResponse(login_request)
+ raise soc.views.out_of_band.AccessViolationResponse(login_request)
def checkIsDeveloper(request):
@@ -137,7 +136,7 @@
login_request = requestLogin(request, DEF_LOGIN_TMPL,
login_message_fmt=login_message_fmt)
- raise soc.logic.out_of_band.AccessViolationResponse(login_request)
+ raise soc.views.out_of_band.AccessViolationResponse(login_request)
def checkIsHost(request, program):
@@ -170,4 +169,4 @@
login_request = requestLogin(request, DEF_LOGIN_TMPL,
login_message_fmt=login_message_fmt)
- raise soc.logic.out_of_band.AccessViolationResponse(login_request)
+ raise soc.views.out_of_band.AccessViolationResponse(login_request)