[Mpuls-commits] r1216 - wasko/branches/2.0/waskaweb/config

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 3 14:55:58 CET 2010


Author: torsten
Date: 2010-02-03 14:55:58 +0100 (Wed, 03 Feb 2010)
New Revision: 1216

Modified:
   wasko/branches/2.0/waskaweb/config/environment.py
Log:
* waskaweb/config/environment.py (load_environment): Set default
  path for controllers to mpulsweb.


Modified: wasko/branches/2.0/waskaweb/config/environment.py
===================================================================
--- wasko/branches/2.0/waskaweb/config/environment.py	2010-02-03 13:53:28 UTC (rev 1215)
+++ wasko/branches/2.0/waskaweb/config/environment.py	2010-02-03 13:55:58 UTC (rev 1216)
@@ -40,6 +40,7 @@
     """Configure the Pylons environment via the ``pylons.config`` object"""
     # Pylons paths
     root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+    future_root = os.path.join(global_conf.get('mpuls.app.root'), 'mpulsweb')
 
     # Templates
     template_urls = []
@@ -56,7 +57,7 @@
         log.info('Custom "public" directory: %s' % static_url)
 
     paths = dict(root=root,
-                 controllers=os.path.join(root, 'controllers'),
+                 controllers=os.path.join(future_root, 'controllers'),
                  static_files=static_url,
                  templates=template_urls)
 



More information about the Mpuls-commits mailing list