[Mpuls-commits] r6112 - base/trunk/mpulsweb/controllers

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 10 16:24:45 CEST 2012


Author: torsten
Date: 2012-10-10 16:24:45 +0200 (Wed, 10 Oct 2012)
New Revision: 6112

Modified:
   base/trunk/mpulsweb/controllers/administration.py
Log:
Sort agency list by fkz


Modified: base/trunk/mpulsweb/controllers/administration.py
===================================================================
--- base/trunk/mpulsweb/controllers/administration.py	2012-10-10 14:24:10 UTC (rev 6111)
+++ base/trunk/mpulsweb/controllers/administration.py	2012-10-10 14:24:45 UTC (rev 6112)
@@ -94,7 +94,7 @@
         # Load the agency list if application is running as evaluation server
         if g.mpuls_config.is_enabled('module', 'agency-overview'):
             agency_overview = MpulsAgencyOverview()
-            agency_overview.search('')
+            agency_overview.search('sort_field:fkz;sort_order:asc')
             c.agency_list = agency_overview.getDatasets()
         
         return render('/administration/new_user.mako')
@@ -112,7 +112,7 @@
             # Load the agency list if application is running as evaluation server
             if g.mpuls_config.is_enabled('module', 'agency-overview'):
                 agency_overview = MpulsAgencyOverview()
-                agency_overview.search('')
+                agency_overview.search('sort_field:fkz;sort_order:asc')
                 c.agency_list = agency_overview.getDatasets()
             # Set initial data which is needed to create a new user
             login = c.form_result.get('login', '')
@@ -137,7 +137,7 @@
         # Load the agency list if application is running as evaluation server
         if g.mpuls_config.is_enabled('module', 'agency-overview'):
             agency_overview = MpulsAgencyOverview()
-            agency_overview.search('')
+            agency_overview.search('sort_field:fkz;sort_order:asc')
             c.agency_list = agency_overview.getDatasets()
         return render('/administration/show_user.mako')
 
@@ -150,7 +150,7 @@
         # Load the agency list if application is running as evaluation server
         if g.mpuls_config.is_enabled('module', 'agency-overview'):
             agency_overview = MpulsAgencyOverview()
-            agency_overview.search('')
+            agency_overview.search('sort_field:fkz;sort_order:asc')
             c.agency_list = agency_overview.getDatasets()
         return render('/administration/edit_user.mako')
 
@@ -163,7 +163,7 @@
             # Load the agency list if application is running as evaluation server
             if g.mpuls_config.is_enabled('module', 'agency-overview'):
                 agency_overview = MpulsAgencyOverview()
-                agency_overview.search('')
+                agency_overview.search('sort_field:fkz;sort_order:asc')
                 c.agency_list = agency_overview.getDatasets()
             form_result = validator.to_python(request.params)
             c.uo.setData(form_result)



More information about the Mpuls-commits mailing list