app/soc/views/site/docs/edit.py
changeset 269 0f1acc4c3e1e
parent 267 0c008a43443b
child 271 01e90bb21b7e
--- a/app/soc/views/site/docs/edit.py	Fri Oct 03 22:09:32 2008 +0000
+++ b/app/soc/views/site/docs/edit.py	Fri Oct 03 22:17:05 2008 +0000
@@ -32,8 +32,8 @@
 from soc.logic import out_of_band
 from soc.logic import path_linkname
 from soc.logic.site import id_user
-from soc.views import helpers
-import soc.views.helpers.request
+from soc.views import helper
+import soc.views.helper.requests
 from soc.views import simple
 from soc.views.helpers import custom_widgets
 from soc.views.helpers import forms_helpers
@@ -163,14 +163,14 @@
         # is 'Profile saved' parameter present, but referrer was not ourself?
         # (e.g. someone bookmarked the GET that followed the POST submit) 
         if (request.GET.get(profile.SUBMIT_MSG_PARAM_NAME)
-            and (not helpers.request.isReferrerSelf(request, suffix=path))):
+            and (not helper.requests.isReferrerSelf(request, suffix=path))):
           # redirect to aggressively remove 'Profile saved' query parameter
           return http.HttpResponseRedirect(request.path)
     
         # referrer was us, so select which submit message to display
         # (may display no message if ?s=0 parameter is not present)
         context['submit_message'] = (
-            helpers.request.getSingleIndexedParamValue(
+            helper.requests.getSingleIndexedParamValue(
                 request, profile.SUBMIT_MSG_PARAM_NAME,
                 values=profile.SUBMIT_MESSAGES))