app/soc/views/helper/responses.py
changeset 499 d22e4fe8e64b
parent 493 6976c4d8d0ac
child 512 aae25d2b4464
equal deleted inserted replaced
498:1cd81063a4c6 499:d22e4fe8e64b
   125     request: the Django HTTP request object; redirect path is derived from
   125     request: the Django HTTP request object; redirect path is derived from
   126       request.path
   126       request.path
   127     old_suffix, new_suffix, params:  see helper.requests.replaceSuffix()
   127     old_suffix, new_suffix, params:  see helper.requests.replaceSuffix()
   128       
   128       
   129   Returns:
   129   Returns:
   130     a Django HTTP redirect response pointing to the altered path
   130     a Django HTTP redirect response pointing to the altered path.
   131   """
   131   """
   132   path = helper.requests.replaceSuffix(request.path, old_suffix, new_suffix,
   132   path = helper.requests.replaceSuffix(request.path, old_suffix, new_suffix,
   133                                        params=params)
   133                                        params=params)
   134   return http.HttpResponseRedirect(path)
   134   return http.HttpResponseRedirect(path)