[Mpuls-commits] r2097 - wasko/branches/2.0/jmdweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Mar 24 10:29:13 CET 2010


Author: torsten
Date: 2010-03-24 10:29:11 +0100 (Wed, 24 Mar 2010)
New Revision: 2097

Modified:
   wasko/branches/2.0/jmdweb/controllers/evaluate.py
Log:
* jmdweb/controllers/evaluate.py (get_configfile): Search for the
evaluation config at multiple places.


Modified: wasko/branches/2.0/jmdweb/controllers/evaluate.py
===================================================================
--- wasko/branches/2.0/jmdweb/controllers/evaluate.py	2010-03-23 18:26:20 UTC (rev 2096)
+++ wasko/branches/2.0/jmdweb/controllers/evaluate.py	2010-03-24 09:29:11 UTC (rev 2097)
@@ -20,11 +20,10 @@
     for enabled_eval in g.mpuls_config.get('evaluations', 'enabled'):
         if enabled_eval.get('id') == str(id):
             filename = enabled_eval.get('config')
-            path = os.path.join(
-                pylons.config.get('pylons.paths').get('static_files')[0], 
-                'xml',
-                filename)
-            return path
+            for d in pylons.config.get('pylons.paths').get('static_files'):
+                path = os.path.join(d, 'xml', filename)
+                if os.path.exists(path):
+                    return path
     return None
 
 def get_search_options(soptions=None, id=None):



More information about the Mpuls-commits mailing list