[Mpuls-commits] r1693 - wasko/branches/2.0/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 23 15:08:39 CET 2010
Author: torsten
Date: 2010-02-23 15:08:38 +0100 (Tue, 23 Feb 2010)
New Revision: 1693
Modified:
wasko/branches/2.0/mpulsweb/lib/config.py
Log:
* mpulsweb/lib/config.py (get_path): Fix get_path function to work
with multiple locations of static files.
Modified: wasko/branches/2.0/mpulsweb/lib/config.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/config.py 2010-02-23 14:02:51 UTC (rev 1692)
+++ wasko/branches/2.0/mpulsweb/lib/config.py 2010-02-23 14:08:38 UTC (rev 1693)
@@ -25,8 +25,10 @@
def get_path(dir, file):
try:
+ # Return path of the first (usually user defined location) of public
+ # files.
return os.path.join(pylons.config.get('pylons.paths')
- .get('static_files'), dir, file)
+ .get('static_files')[0], dir, file)
except:
return None # path building will fail on initial server start/restart
# as pylonspath is empty
More information about the Mpuls-commits
mailing list