[Mpuls-commits] r2016 - wasko/branches/2.0/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Mar 19 07:40:16 CET 2010
Author: torsten
Date: 2010-03-19 07:40:15 +0100 (Fri, 19 Mar 2010)
New Revision: 2016
Modified:
wasko/branches/2.0/mpulsweb/controllers/case_overview.py
Log:
* mpulsweb/controllers/case_overview.py (parseSearchOptions): Added
check if phases are defined.
Modified: wasko/branches/2.0/mpulsweb/controllers/case_overview.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case_overview.py 2010-03-18 19:29:54 UTC (rev 2015)
+++ wasko/branches/2.0/mpulsweb/controllers/case_overview.py 2010-03-19 06:40:15 UTC (rev 2016)
@@ -46,7 +46,9 @@
if options.has_key('phase'):
for pp in options['phase']:
log.debug(pp)
- # Get phasepart ids for the selected phasepairs.
+ # Get phasepart ids for the selected phasepairs. Only if pairs are
+ # defined.
+ if len(g.mpuls_config.get('phases', 'pairs')) <= 0: continue
for p in g.mpuls_config.get('phases', 'pairs')[0].get(str(pp), [-1]):
search_options.append('phase:%s' % p)
More information about the Mpuls-commits
mailing list