durusmail: quixote-users: quixote.form.form.Form, widget values, querystring containing "="
quixote.form.form.Form, widget values, querystring containing "="
2003-05-07
2003-05-08
2003-05-08
quixote.form.form.Form, widget values, querystring containing "="
Alex Li
2003-05-07
Sorry I don't think I have presented myself clearly...

> 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.

I mean once you have an "=" in your url (ex: part of your querystring), any
preset values (ie, Form.add_widget(value=...)) for any widgets won't appear,
even the querystring parameters has nothing to do with those widgets with
preset values.

Alex

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

reply