[Mpuls-commits] r6159 - waska/branches/waska3/waskaweb/lib

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Dec 18 11:02:49 CET 2012


Author: torsten
Date: 2012-12-18 11:02:49 +0100 (Tue, 18 Dec 2012)
New Revision: 6159

Added:
   waska/branches/waska3/waskaweb/lib/app_globals.py
Log:
Added overwritten app_globals to generate rules in formed tree



Added: waska/branches/waska3/waskaweb/lib/app_globals.py
===================================================================
--- waska/branches/waska3/waskaweb/lib/app_globals.py	                        (rev 0)
+++ waska/branches/waska3/waskaweb/lib/app_globals.py	2012-12-18 10:02:49 UTC (rev 6159)
@@ -0,0 +1,13 @@
+"""The application's Globals object"""
+import os
+import logging
+import mpulsweb.lib.app_globals
+from formed.meta.io.document import openDocument
+log = logging.getLogger(__name__)
+
+class Globals(mpulsweb.lib.app_globals.Globals):
+    def _load_formedtree_from_file(self, formed_file):
+        # Build FormedTree. This tree will work as template for all cases
+        log.debug("loading formedtree definition with rules for WASKA from %r", 
+            formed_file)
+        return openDocument(formed_file, generate_rules=True)



More information about the Mpuls-commits mailing list