[Mpuls-commits] r4197 - base/trunk/mpulsweb/templates/auth

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Nov 16 17:33:09 CET 2010


Author: torsten
Date: 2010-11-16 17:33:08 +0100 (Tue, 16 Nov 2010)
New Revision: 4197

Modified:
   base/trunk/mpulsweb/templates/auth/login.mako
Log:
* mpulsweb/templates/auth/login.mako: Print sorted list of dbs


Modified: base/trunk/mpulsweb/templates/auth/login.mako
===================================================================
--- base/trunk/mpulsweb/templates/auth/login.mako	2010-11-16 16:30:09 UTC (rev 4196)
+++ base/trunk/mpulsweb/templates/auth/login.mako	2010-11-16 16:33:08 UTC (rev 4197)
@@ -45,8 +45,9 @@
     </div>
     <div class="input">
       <select name='dbname' size=1>
-      % for db, info in h.get_db_selectionlist().items():
-           <option value="${db}">${info.get('label')}</option>
+      <% dbs = h.get_db_selectionlist() %>
+      % for db in h.get_sorted_db_from_selectionlist():
+           <option value="${db}">${dbs.get(db).get('label')}</option>
       % endfor
       </select>
     </div>



More information about the Mpuls-commits mailing list