These changes should have been in r620, but somehow I did not save them, or
authorTodd Larsen <tlarsen@google.com>
Wed, 24 Sep 2008 02:22:12 +0000
changeset 191 80f08751f1e5
parent 190 b1351bf81064
child 192 f6bf679dab26
These changes should have been in r620, but somehow I did not save them, or saved over them with an old copy in the editor. Not sure...
app/soc/views/user/profile.py
--- a/app/soc/views/user/profile.py	Tue Sep 23 23:30:15 2008 +0000
+++ b/app/soc/views/user/profile.py	Wed Sep 24 02:22:12 2008 +0000
@@ -138,15 +138,15 @@
       # 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 response_helpers.isReferrerSelf(request,
-                                                   suffix=linkname))):
+          and (not request_helpers.isReferrerSelf(request,
+                                                  suffix=linkname))):
         # 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'] = (
-          url_helpers.getSingleIndexedParamValue(
+          request_helpers.getSingleIndexedParamValue(
               request, SUBMIT_MSG_PARAM_NAME, values=SUBMIT_MESSAGES))
 
       # populate form with the existing User entity