[Mpuls-commits] r1269 - wasko/branches/2.0/mpulsweb/config

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 5 12:26:09 CET 2010


Author: torsten
Date: 2010-02-05 12:26:03 +0100 (Fri, 05 Feb 2010)
New Revision: 1269

Modified:
   wasko/branches/2.0/mpulsweb/config/routing.py
Log:
 mpulsweb/config/routing.py (make_map): Fixed makeing of routes
	mapping. Search for controllers in basedir too.


Modified: wasko/branches/2.0/mpulsweb/config/routing.py
===================================================================
--- wasko/branches/2.0/mpulsweb/config/routing.py	2010-02-05 09:20:57 UTC (rev 1268)
+++ wasko/branches/2.0/mpulsweb/config/routing.py	2010-02-05 11:26:03 UTC (rev 1269)
@@ -69,7 +69,7 @@
     basepath = config['pylons.paths']['controllers']
     controller_dirs.append(basepath) 
     # Then append controllers in the Baseapplication
-    controller_dirs.append(os.path.join(config['mpuls.app.path'], 'controllers'))
+    controller_dirs.append(os.path.join(config['mpuls.app.root'], 'mpulsweb', 'controllers'))
     # Remove duplicate in controller dirs
     controller_dirs = list(set(controller_dirs))
     map = Mapper(controller_scan=controller_scan,



More information about the Mpuls-commits mailing list