app/soc/views/site/sponsor/profile.py
changeset 303 4f1bb54ddae5
parent 302 3b9c52170f46
child 309 7190b224c701
--- a/app/soc/views/site/sponsor/profile.py	Sun Oct 12 08:46:05 2008 +0000
+++ b/app/soc/views/site/sponsor/profile.py	Sun Oct 12 14:58:47 2008 +0000
@@ -30,18 +30,17 @@
 import soc.logic
 from soc.logic import validate
 from soc.logic import out_of_band
-from soc.logic.helper import access
 from soc.logic.site import id_user
+import soc.models.sponsor
 from soc.views import helper
+from soc.views.helper import access
 import soc.views.helper.forms
 import soc.views.helper.requests
 import soc.views.helper.responses
 import soc.views.helper.widgets
 from soc.views import simple
 from soc.views.user import profile
-
-import soc.models.sponsor
-
+import soc.views.out_of_band
 
 class CreateForm(helper.forms.DbModelForm):
   """Django form displayed when creating a Sponsor.
@@ -99,7 +98,7 @@
 
   try:
     access.checkIsDeveloper(request)
-  except  soc.logic.out_of_band.AccessViolationResponse, alt_response:
+  except  soc.views.out_of_band.AccessViolationResponse, alt_response:
     return alt_response.response()
 
   # create default template context for use with any templates
@@ -212,7 +211,7 @@
 
   try:
     access.checkIsDeveloper(request)
-  except  soc.logic.out_of_band.AccessViolationResponse, alt_response:
+  except  soc.views.out_of_band.AccessViolationResponse, alt_response:
     return alt_response.response()
 
   # create default template context for use with any templates