durusmail: quixote-users: quixote.form.form.Form, widget values, querystring containing "="
quixote.form.form.Form, widget values, querystring containing "="
2003-05-06
quixote.form.form.Form, widget values, querystring containing "="
2003-05-07
quixote.form.form.Form, widget values, querystring containing "="
Andrew Kuchling
2003-05-07
On Tue, May 06, 2003 at 02:11:14PM -0700, Alex Li wrote:
>attached to it (ex: www.mysite.com/form?email=alex).   I don't use the
querystring
>for anything (yet), though any preset widget's value (ie, set in
>self.add_widgets(value=...) in a Form) won't be rendered if a "=" sign is
presented
>in the url.  But if you take out the "=" sign and replace it with %3D (ie,
>url_quote("=")), it works and the widget's value is rendered.  Is this a bug?
The

Assuming I'm understanding your question correctly, no, this isn't a
bug.  A string such as 'email=alex' in the query string is treated as
specifying the value of the 'email' form variable, so the widget
framework notices this and uses 'alex' as the value of the widget.
This lets you link to a form and provide an initial value for one or
more fields.

--amk                                                    (www.amk.ca)
My nose shall never be touched while heaven give me strength.
      -- Sterne, _Tristram Shandy_

reply