app/soc/views/helpers/response_helpers.py
changeset 179 4882d6c5630d
parent 169 a9b3d6c9d4f9
child 190 b1351bf81064
--- a/app/soc/views/helpers/response_helpers.py	Sat Sep 20 17:39:07 2008 +0000
+++ b/app/soc/views/helpers/response_helpers.py	Sat Sep 20 19:04:43 2008 +0000
@@ -125,7 +125,7 @@
   return context
 
 
-def replaceSuffix(path, old_suffix, new_suffix, params=None):
+def replaceSuffix(path, old_suffix, new_suffix=None, params=None):
   """Replace the last part of a URL path with something else.
 
   Also appends an optional list of query parameters.  Used for
@@ -166,7 +166,7 @@
 
 
 def redirectToChangedSuffix(
-    request, old_suffix, new_suffix, params=None):
+    request, old_suffix, new_suffix=None, params=None):
   """Changes suffix of URL path and returns an HTTP redirect response.
   
   Args: