[Mpuls-commits] r1615 - wasko/branches/2.0/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 16 12:48:38 CET 2010


Author: torsten
Date: 2010-02-16 12:48:38 +0100 (Tue, 16 Feb 2010)
New Revision: 1615

Modified:
   wasko/branches/2.0/mpulsweb/lib/app_globals.py
Log:
Load formed from static files


Modified: wasko/branches/2.0/mpulsweb/lib/app_globals.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/app_globals.py	2010-02-16 11:47:32 UTC (rev 1614)
+++ wasko/branches/2.0/mpulsweb/lib/app_globals.py	2010-02-16 11:48:38 UTC (rev 1615)
@@ -60,7 +60,10 @@
         self.config_path = os.path.dirname(config_file)
         self.mpuls_config = MpulsConfig(config_file)
 
-        public_dir = config.get('pylons.paths').get('static_files')
+        # Load formed. Formed is located in one of the locations for static
+        # files. Usually it can be found in the first location as this are the
+        # userdefined static files. 
+        public_dir = config.get('pylons.paths').get('static_files')[0]
         formed_dir = os.path.join(public_dir, "formed")
         formed_file = os.path.join(formed_dir,
                                    self.mpuls_config.get('formed', 'treefile'))



More information about the Mpuls-commits mailing list