This form allows the user to choose which object to act on so it doesn't naturally have a place in the URL space to sit that includes a reference to the object. I want to come from the home page of the object (which does have a component of the URL specifying it) to this form but in that case preselect the correct object in the widget for the user. This becomes easier with my patch because I can just use myobject._p_format_oid() when I render the home page instead of duplicating the code that creates the hexadecimal version of the oid that SelectWidget uses for keys. Dave ------ David K. Hess Verscend Technologies, Inc. dhess@verscend.com 214-684-5448 On Dec 4, 2006, at 8:41 AM, David Binger wrote: > > On Dec 4, 2006, at 8:06 AM, David K. Hess wrote: > >> >> I have an "action" page with a form where I can act on an object >> selected from a SingleSelectWidget. I also have a "home" page for >> viewing one of those objects. On the "home" page, I have a form >> with a HiddenWidget with the same name as the "action" page's >> SingleSelectWidget with the key value for that object in it. Then >> I post the form from the "home" page to the "action" page (such >> that form.get_submit() == True) to preselect the correct object in >> the SingleSelectWidget. >> >> I could name the HiddenWidget separately from the >> SingleSelectWidget and do this default select by hand but this >> seems to work well (though maybe a bit unorthodox). > > I'm not sure if I really understand what you are doing, but I > guess our normal pattern for this would be to use a component of > the URL, instead of a hidden value, to identify the particular > instance. (As far as I know, your way is fine.) > > I don't understand how your patch makes something easier. > > > _______________________________________________ > QP mailing list > QP@mems-exchange.org > http://mail.mems-exchange.org/mailman/listinfo/qp