What I'm trying to do is sort a dict passed from my controller:

{{a=schols.items()}}
{{a.sort()}}
{{schols={}}}
{{for b in a:}}
{{schols[b[0]]=b[1]}}
{{pass}}

bye the way Massimo, I commented out the code above in my layout, and
I had to do this with the for line for it to comment out right - I
thought you had fixed this (per your previous comment about doing
this.)

{{#for b in a:#}}


thx,

-wj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to