This so called Hotfix adds the new method query_string to the HTTPRequest class. The method is then accessible through the REQUEST object.
Hotfix
query_string
REQUEST
It builds a url quoted (quote_plus) query string from a dictionary (usually from the form dictionary which is based on QUERY_STRING).
query_string([[replace]=replace_dict], [[original]=original_dict]])
Updates original_dict by the values in replace_dict and returns the result as url quoted query string.
original_dict
replace_dict
original_dict defaults to REQUEST.form if no parameter is passed to it. Keys in replace_dict with a value of None (or _.None in DTML) will be deleted from original_dicts before being quoted.
REQUEST.form
None
original_dicts
The original REQUEST.form will remain unchanged.
(assuming REQUEST.form is {'foobar':no translation, 'foo':'bar'})
no translation
foobar=furchtbar+in+german&foo=bar
bar
gaga=26%25%2b&bar=foo
foo
foobar=no+translation&bar=foo
Have fun!
Gr�goire Weber, 2001-07-12