[Mpuls-commits] r4221 - in base/trunk: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 17 17:00:12 CET 2010


Author: bh
Date: 2010-11-17 17:00:08 +0100 (Wed, 17 Nov 2010)
New Revision: 4221

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/export.py
Log:
* mpulsweb/lib/export.py (Container.create_tables): always export
the invisible pages as they cannot be explicily selected by the
user and they usually contain important information like the
current phase.
Fixes mpuls/issue1310


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-11-17 15:43:02 UTC (rev 4220)
+++ base/trunk/ChangeLog	2010-11-17 16:00:08 UTC (rev 4221)
@@ -1,3 +1,11 @@
+2010-11-17  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/lib/export.py (Container.create_tables): always export
+	the invisible pages as they cannot be explicily selected by the
+	user and they usually contain important information like the
+	current phase.
+	Fixes mpuls/issue1310
+
 2010-11-17  Frank Koormann <frank.koormann at intevation.de>
 
 	Minor rendering improvements:

Modified: base/trunk/mpulsweb/lib/export.py
===================================================================
--- base/trunk/mpulsweb/lib/export.py	2010-11-17 15:43:02 UTC (rev 4220)
+++ base/trunk/mpulsweb/lib/export.py	2010-11-17 16:00:08 UTC (rev 4221)
@@ -101,7 +101,10 @@
         if not self.one_table_per_page:
             table_order.append("master")
         for page in self.meta_tree.findAllByClass(PageNode):
-            if page.getName() not in selection:
+            # always export the invisible pages as they cannot be
+            # explicily selected by the user and they usually contain
+            # important information like the current phase.
+            if page.getName() not in selection and not page.isInvisible():
                 continue
 
             collector = StructureWidgetCollector()



More information about the Mpuls-commits mailing list