From: richard Date: Tue, 24 Jun 2003 04:16:58 +0000 (+0000) Subject: attempt to fix query editing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=83d091b8fc41bcc410c888787ee974f981182816;p=roundup.git attempt to fix query editing git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1760 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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):