[Mpuls-commits] r1966 - wasko/branches/2.0/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 16 11:51:38 CET 2010


Author: torsten
Date: 2010-03-16 11:51:38 +0100 (Tue, 16 Mar 2010)
New Revision: 1966

Modified:
   wasko/branches/2.0/waskaweb/controllers/evaluate.py
Log:
Fixed getting location of xml configs for evaluation 


Modified: wasko/branches/2.0/waskaweb/controllers/evaluate.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/evaluate.py	2010-03-16 10:50:41 UTC (rev 1965)
+++ wasko/branches/2.0/waskaweb/controllers/evaluate.py	2010-03-16 10:51:38 UTC (rev 1966)
@@ -5,6 +5,7 @@
 import pylons
 
 from pylons import session, g, c
+from pylons.i18n import _
 from libmpuls.evaluation.config import EvaluationConfig
 from libmpuls.evaluation.evaluation import EvaluationSet
 from libmpuls.evaluation.export import EvaluationExportXML, EvaluationExportCSV, EvaluationExportHTML
@@ -20,7 +21,7 @@
         if enabled_eval.get('id') == str(id):
             filename = enabled_eval.get('config')
             path = os.path.join(
-                pylons.config.get('pylons.paths').get('static_files'), 
+                pylons.config.get('pylons.paths').get('static_files')[0], 
                 'xml',
                 filename)
             return path



More information about the Mpuls-commits mailing list