--- a/app/soc/views/site/user/profile.py Fri Oct 03 21:41:12 2008 +0000
+++ b/app/soc/views/site/user/profile.py Fri Oct 03 21:59:32 2008 +0000
@@ -34,8 +34,8 @@
from soc.views import simple
from soc.views import helpers
import soc.views.helpers.list
+import soc.views.helpers.request
from soc.views.helpers import forms_helpers
-from soc.views.helpers import request_helpers
from soc.views.helpers import response_helpers
from soc.views.user import profile
@@ -169,7 +169,7 @@
if request.path.endswith('lookup'):
# convert /lookup path into /profile/link_name path
- context['edit_link'] = request_helpers.replaceSuffix(
+ context['edit_link'] = helpers.request.replaceSuffix(
request.path, 'lookup', 'profile/%s' % user.link_name)
# else: URL is not one that was expected, so do not display edit link
elif not form:
@@ -296,7 +296,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(profile.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)
@@ -304,7 +304,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, profile.SUBMIT_MSG_PARAM_NAME,
values=profile.SUBMIT_MESSAGES))