On Tue, May 20, 2008 at 3:38 PM, Mike Orr <[EMAIL PROTECTED]> wrote:
> If you're using the rails helpers, I would first make a list of
> label-value pairs, give that to options_for_select, and feed the
> result to select(). If your homegrown function is working there's no
> reason to switch from
On Tue, May 20, 2008 at 12:10 PM, Joe Riopel <[EMAIL PROTECTED]> wrote:
>
> On Tue, May 20, 2008 at 2:12 PM, Garland, Ken R <[EMAIL PROTECTED]> wrote:
>>
>> No problem, hope this helps:
>>
>> options_for_select: generate HTML "" set. Combine into select
>> function.
>>
>> options_for_select_from_
On Tue, May 20, 2008 at 2:12 PM, Garland, Ken R <[EMAIL PROTECTED]> wrote:
>
> No problem, hope this helps:
>
> options_for_select: generate HTML "" set. Combine into select
> function.
>
> options_for_select_from_objects: same but get the labels and values
> from specific attributes in a list of
No problem, hope this helps:
options_for_select: generate HTML "" set. Combine into select function.
options_for_select_from_objects: same but get the labels and values
from specific attributes in a list of objects. Deprecate.
options_for_select_from_dicts: same but get the labels and values fr
On Tue, May 20, 2008 at 11:58 AM, Garland, Ken R <[EMAIL PROTECTED]> wrote:
>
> c.list would be the text of the options.
What would be the value of the options? Sorry if this is really
simple, but the objects in my c.type_list are not strings, they are
instances of a class I created.
--~--~
c.list would be the text of the options.
On Tue, May 20, 2008 at 11:55 AM, Joe Riopel <[EMAIL PROTECTED]> wrote:
>
> On Tue, May 20, 2008 at 11:49 AM, Garland, Ken R <[EMAIL PROTECTED]> wrote:
>> Hmm, I'm not 100% sure I understand but this is something that I use
>> to populate a select drop-dow
On Tue, May 20, 2008 at 11:49 AM, Garland, Ken R <[EMAIL PROTECTED]> wrote:
> Hmm, I'm not 100% sure I understand but this is something that I use
> to populate a select drop-down from a list:
>
> ${ h.select(name='selectedItem',
> option_tags=h.options_for_select(c.list, selected=None),
> selecte
Hmm, I'm not 100% sure I understand but this is something that I use
to populate a select drop-down from a list:
${ h.select(name='selectedItem',
option_tags=h.options_for_select(c.list, selected=None),
selected=None, multiple=False ) }
On Tue, May 20, 2008 at 11:40 AM, Joe Riopel <[EMAIL PROTEC
Hi,
I am new to pylons and have a question about using the h.select(). I
have a list of objects that are accessible in the form as
"c.type_list". I want to use the elements in that list to populate the
h.select(). However, I am unsure how to specify the value of each
option and the text to use fo