app/soc/views/user/profile.py
changeset 267 0c008a43443b
parent 256 101c586ff5c8
child 269 0f1acc4c3e1e
--- a/app/soc/views/user/profile.py	Fri Oct 03 21:41:12 2008 +0000
+++ b/app/soc/views/user/profile.py	Fri Oct 03 21:59:32 2008 +0000
@@ -31,9 +31,10 @@
 from soc.logic import validate
 from soc.logic import out_of_band
 from soc.logic.site import id_user
+from soc.views import helpers
+import soc.views.helpers.request
 from soc.views import simple
 from soc.views.helpers import forms_helpers
-from soc.views.helpers import request_helpers
 from soc.views.helpers import response_helpers
 
 import soc.models.user
@@ -139,7 +140,7 @@
       # 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(SUBMIT_MSG_PARAM_NAME)
-          and (not request_helpers.isReferrerSelf(request,
+          and (not helpers.request.isReferrerSelf(request,
                                                   suffix=linkname))):
         # redirect to aggressively remove 'Profile saved' query parameter
         return http.HttpResponseRedirect(request.path)
@@ -147,7 +148,7 @@
       # referrer was us, so select which submit message to display
       # (may display no message if ?s=0 parameter is not present)
       context['submit_message'] = (
-          request_helpers.getSingleIndexedParamValue(
+          helpers.request.getSingleIndexedParamValue(
               request, SUBMIT_MSG_PARAM_NAME, values=SUBMIT_MESSAGES))
 
       # populate form with the existing User entity