From 83d091b8fc41bcc410c888787ee974f981182816 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 24 Jun 2003 04:16:58 +0000 Subject: [PATCH] attempt to fix query editing git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1760 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index cd4a871..db1d8ae 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -1498,16 +1498,9 @@ class HTMLRequest: ''' Parse the URL for query args, and update my attributes using the values. ''' - self.form = {} - for name, value in cgi.parse_qsl(url): - if self.form.has_key(name): - if isinstance(self.form[name], type([])): - self.form[name].append(cgi.MiniFieldStorage(name, value)) - else: - self.form[name] = [self.form[name], - cgi.MiniFieldStorage(name, value)] - else: - self.form[name] = cgi.MiniFieldStorage(name, value) + env = {'QUERY_STRING': url} + self.form = cgi.FieldStorage(environ=env) + self._post_init() def update(self, kwargs): -- 2.30.2