[Secure-testing-commits] r3856 - lib/python

Florian Weimer fw at costa.debian.org
Sun Apr 23 12:37:56 UTC 2006


Author: fw
Date: 2006-04-23 12:37:55 +0000 (Sun, 23 Apr 2006)
New Revision: 3856

Modified:
   lib/python/web_support.py
Log:
lib/python/web_support.py (URLFactory.updateParamsDict):
  New method.
(URLFactory.updateParams):
  Implement using updateParamsDict.


Modified: lib/python/web_support.py
===================================================================
--- lib/python/web_support.py	2006-04-23 10:43:00 UTC (rev 3855)
+++ lib/python/web_support.py	2006-04-23 12:37:55 UTC (rev 3856)
@@ -192,7 +192,7 @@
                                          self._stripSlashes(path),
                                          self._convertArgs(args)))
 
-    def updateParams(self, **args):
+    def updateParamsDict(self, args):
         new_args = {}
         for (key, value) in self.params.items():
             new_args[key] = value
@@ -201,6 +201,8 @@
         return URL("/%s%s%s" % (self.script_name, self.path_info,
                                 self._convertArgs(new_args)))
 
+    def updateParams(self, **args):
+        self.updateParamsDict(self, args)
 
 charToHTML = map(chr, range(256))
 charToHTMLattr = map(chr, range(256))




More information about the Secure-testing-commits mailing list