It works. Thanks. :)
On Dec 12, 4:33 am, "Jose Galvez" <[EMAIL PROTECTED]> wrote:
> I just tested this on my linux box and it works as expected. When I ran it
> I see test test in the webpage, but if you look at the page source you see
> the correct <option> tags. What you are missing is the <select></selct>
> wrapper to make it render correctly
> Jose
>
> On Dec 11, 2007 9:10 AM, Olli Wang <[EMAIL PROTECTED]> wrote:
>
>
>
> > Yes, I tried. But it returns just "test test", so I use repr() to show
> > the source code for comparison.
>
> > On Dec 12, 1:01 am, "Jose Galvez" <[EMAIL PROTECTED]> wrote:
> > > why the repr? did you try just ${h.options_for_select(['test','test'])}
>
> > > On Dec 11, 2007 8:49 AM, Olli Wang <[EMAIL PROTECTED]> wrote:
>
> > > > Hi, I want to create a selection filed in template.
>
> > > > I tried "h.options_for_select(['test', 'test'])" in shell,
> > > > it correctly returned
> > > > '<option value="test">test</option>\n<option value="test">test</
> > > > option>'
>
> > > > But when I tried "${repr(h.options_for_select(['test', 'test']))}"
> > > > it just returned 'test\ntest'
>
> > > > Any help? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---