summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8db4181)
raw | patch | inline | side by side (parent: 8db4181)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 24 Jun 2003 04:16:58 +0000 (04:16 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 24 Jun 2003 04:16:58 +0000 (04:16 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1760 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/templating.py | patch | blob | history |
index cd4a87194f2705904a0b65e21607d3e79a9ccd3c..db1d8ae619c7c063093192f7cfa677df68a98c66 100644 (file)
''' 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):