durusmail: quixote-users: Passing values to a form
Passing values to a form
[PATCH] form.Form.form_submitted
2003-09-28
2003-09-29
Passing values to a form
Mark Bucciarelli
2003-09-28
In my calendar Quixote app, I would like to default the time when someone
clicks to create a new appointment.  If they click the "add" link in the
9:00a box, then the appointment start time should default to 9:00a.

If I pass the parameter 9:00a to the appointment form as a query string, then
Quixote turns the QUERY_STRING into form variables.   When the form's
handle() method is called, since there is data in the request.form, Quixote
considers the form as being submitted, and branches to the action method,
rather than the render method.

This seems like a common use case that (to me, at least) Quixote did not react
to as expected.  However, I don't have any clever suggestions for how to do
it differently.  Hopefully, I'm missing something simple.

Regards,

--
Mark Bucciarelli, www.hubcapconsulting.com
    He who receives an idea from me, receives instruction himself
without lessening mine; as he who lights his taper at mine receives
light without darkening me.   -- Thomas Jefferson


reply