On 22 Maj, 23:54, Philip Jenvey <[email protected]> wrote:
> On May 22, 2009, at 2:31 PM, Jan Koprowski wrote:
>
>
>
> > Hi !
>
> > How I can display options elements in select field exactly in this
> > same order as I wrote it in dictionary ?
>
> Assuming you're using webhelpers.html.tags.select, you can pass it an
> ordered iterable of item pairs, like a list of tuples (see its
> documentation).
>
> Plain dicts don't maintain order
>
> --
> Philip Jenvey
Thank You for help Philip. So simple and so hard at once :]
--
Jan Koprowski
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---