[Mpuls-commits] r2609 - wasko/branches/2.0/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue May 4 12:14:52 CEST 2010
Author: torsten
Date: 2010-05-04 12:14:50 +0200 (Tue, 04 May 2010)
New Revision: 2609
Modified:
wasko/branches/2.0/mpulsweb/controllers/case_overview.py
Log:
* mpulsweb/controllers/case_overview.py (default_phases): New function
to build a list of all available phase ids (default for search option)
Modified: wasko/branches/2.0/mpulsweb/controllers/case_overview.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case_overview.py 2010-05-04 10:10:23 UTC (rev 2608)
+++ wasko/branches/2.0/mpulsweb/controllers/case_overview.py 2010-05-04 10:14:50 UTC (rev 2609)
@@ -25,6 +25,15 @@
order = params.get('sort_order', 'asc')
return sort, order
+def default_phases():
+ phases = []
+ for pp in g.mpuls_config.get('phases', 'phases'):
+ pairs = g.mpuls_config.get('phases', 'pairs')
+ for p in pairs[0].get(str(pp), [-1]):
+ phases.append(p)
+ phases.append(-1)
+ return phases
+
def parseSearchOptions(options):
search_options = []
user = session['USER_AUTHORIZED']
More information about the Mpuls-commits
mailing list