summaryrefslogtreecommitdiffstats
path: root/lib/python/web_support.py
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2006-04-23 12:37:55 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2006-04-23 12:37:55 +0000
commit8ebebadd29ffecee6f5dcae5e9420e457cfdadeb (patch)
tree1984e3d62c720dc132c37390bdbdb7fed0d8e624 /lib/python/web_support.py
parent12583c79ce6772d824234802fec086711c6f4067 (diff)
lib/python/web_support.py (URLFactory.updateParamsDict):
New method. (URLFactory.updateParams): Implement using updateParamsDict. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@3856 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib/python/web_support.py')
-rw-r--r--lib/python/web_support.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/web_support.py b/lib/python/web_support.py
index 1a6447ac56..1c48f1f934 100644
--- a/lib/python/web_support.py
+++ b/lib/python/web_support.py
@@ -192,7 +192,7 @@ class URLFactory:
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 @@ class URLFactory:
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))

© 2014-2024 Faster IT GmbH | imprint | privacy policy