[Mpuls-commits] r2607 - in wasko/branches/2.0: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 4 12:03:48 CEST 2010


Author: roland
Date: 2010-05-04 12:03:47 +0200 (Tue, 04 May 2010)
New Revision: 2607

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/renderer.py
Log:
slight tweak to the sorting of drop downs

Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-05-04 09:53:14 UTC (rev 2606)
+++ wasko/branches/2.0/ChangeLog	2010-05-04 10:03:47 UTC (rev 2607)
@@ -18,7 +18,7 @@
 	* mpulsweb/templates/base.mako:
 	* mpulsweb/templates/casemanagement/caselist.mako:
 	* mpulsweb/templates/casemanagement/main.mako: tweaks to make the
-        CSS menu work with internet explorer
+        CSS menu work with internet explorer. Change the order of options.
 
 2010-05-03  Bernhard Herzog  <bh at intevation.de>
 

Modified: wasko/branches/2.0/mpulsweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-05-04 09:53:14 UTC (rev 2606)
+++ wasko/branches/2.0/mpulsweb/lib/renderer.py	2010-05-04 10:03:47 UTC (rev 2607)
@@ -839,8 +839,12 @@
 
     def _renderExternalChoiceList(self, choiceList):
         out = []
-        children = sorted(choiceList.getChildren(), key = lambda child: child.getTarget())
         
+        # Sort the list according to the target
+        children = sorted(choiceList.getChildren(),
+                        key     = lambda child: child.getTarget(),
+                        reverse = True)
+        
         if children:
             for child in children:
                 value = child.getValue()



More information about the Mpuls-commits mailing list