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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 15 12:10:17 CET 2010


Author: torsten
Date: 2010-03-15 12:10:16 +0100 (Mon, 15 Mar 2010)
New Revision: 1947

Modified:
   wasko/branches/2.0/jmdweb/controllers/evaluate.py
Log:
Fixed ealuation controller (evaluation page can be loaded now). 


Modified: wasko/branches/2.0/jmdweb/controllers/evaluate.py
===================================================================
--- wasko/branches/2.0/jmdweb/controllers/evaluate.py	2010-03-15 10:53:07 UTC (rev 1946)
+++ wasko/branches/2.0/jmdweb/controllers/evaluate.py	2010-03-15 11:10:16 UTC (rev 1947)
@@ -5,14 +5,15 @@
 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
 from mpulsweb.lib.base import BaseController, render, request, response
 from mpulsweb.lib.db import db
 from mpulsweb.lib.helpers import format_date, get_phasesuccessors 
+from mpulsweb.lib.validators import EvaluationFormValidator
 
-from jmdweb.lib.validators import EvaluationFormValidator
 log = logging.getLogger(__name__)
 
 def get_configfile(id):
@@ -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