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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to