[Mpuls-commits] r1277 - wasko/branches/2.0/mpulsweb/config
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Feb 5 15:34:03 CET 2010
Author: torsten
Date: 2010-02-05 15:34:02 +0100 (Fri, 05 Feb 2010)
New Revision: 1277
Modified:
wasko/branches/2.0/mpulsweb/config/environment.py
Log:
* mpulsweb/config/environment.py (load_environment): Added debugging
info on startup about custom controller locations
Modified: wasko/branches/2.0/mpulsweb/config/environment.py
===================================================================
--- wasko/branches/2.0/mpulsweb/config/environment.py 2010-02-05 14:11:36 UTC (rev 1276)
+++ wasko/branches/2.0/mpulsweb/config/environment.py 2010-02-05 14:34:02 UTC (rev 1277)
@@ -55,8 +55,14 @@
static_url = global_conf.get('mpuls.app.path.public')
log.info('Custom "public" directory: %s' % static_url)
+ # Controllers
+ controller_url = os.path.join(root, 'controllers')
+ if global_conf.get('mpuls.app.path.controllers'):
+ controller_url = global_conf.get('mpuls.app.path.controllers')
+ log.info('Custom "controller" directory: %s' % controller_url)
+
paths = dict(root=root,
- controllers=global_conf.get('mpuls.app.path.controllers'),
+ controllers=controller_url,
static_files=static_url,
templates=template_urls)
More information about the Mpuls-commits
mailing list