diff -r af1d7f48b361 -r 0f1acc4c3e1e app/soc/views/user/profile.py --- a/app/soc/views/user/profile.py Fri Oct 03 22:09:32 2008 +0000 +++ b/app/soc/views/user/profile.py Fri Oct 03 22:17:05 2008 +0000 @@ -31,8 +31,8 @@ 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 helper +import soc.views.helper.requests from soc.views import simple from soc.views.helpers import forms_helpers from soc.views.helpers import response_helpers @@ -140,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 helpers.request.isReferrerSelf(request, + and (not helper.requests.isReferrerSelf(request, suffix=linkname))): # redirect to aggressively remove 'Profile saved' query parameter return http.HttpResponseRedirect(request.path) @@ -148,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'] = ( - helpers.request.getSingleIndexedParamValue( + helper.requests.getSingleIndexedParamValue( request, SUBMIT_MSG_PARAM_NAME, values=SUBMIT_MESSAGES)) # populate form with the existing User entity