[Formed-commits] r311 - in trunk: . formed/formed/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 24 10:05:40 CET 2009
Author: teichmann
Date: 2009-02-24 10:05:34 +0100 (Tue, 24 Feb 2009)
New Revision: 311
Modified:
trunk/ChangeLog
trunk/formed/formed/model/data.py
Log:
Allow pages to be 'invisible'.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-02-10 09:58:34 UTC (rev 310)
+++ trunk/ChangeLog 2009-02-24 09:05:34 UTC (rev 311)
@@ -1,28 +1,32 @@
-2009-02-09 Sascha L. Teichmanne <teichmann at intevation.de>
+2009-02-09 Sascha L. Teichmann <teichmann at intevation.de>
+ * formed/formed/model/data.py: Allow pages to be 'invisible'.
+
+2009-02-09 Sascha L. Teichmann <teichmann at intevation.de>
+
* formed/formed/plugins/export/sql.py: Fixed problem with
description reference tables of radio groups.
-2009-02-09 Sascha L. Teichmanne <teichmann at intevation.de>
+2009-02-09 Sascha L. Teichmann <teichmann at intevation.de>
* formed/formed/plugins/export/sql.py: replace '-' in names
by '_'.
-2009-02-09 Sascha L. Teichmanne <teichmann at intevation.de>
+2009-02-09 Sascha L. Teichmann <teichmann at intevation.de>
* formed/formed/plugins/export/sql.py: to figure ou which
tables are equal the insert statememnts are lower cased
and sorted before they are compared. This reduces the number
of generated referfence tables.
-2009-02-09 Sascha L. Teichmanne <teichmann at intevation.de>
+2009-02-09 Sascha L. Teichmann <teichmann at intevation.de>
Repair SQL schema creation for radio groups.
* formed/formed/plugins/export/sql.py: radio groups are handled
like choices now.
-2009-02-09 Sascha L. Teichmanne <teichmann at intevation.de>
+2009-02-09 Sascha L. Teichmann <teichmann at intevation.de>
Make it startable again.
Modified: trunk/formed/formed/model/data.py
===================================================================
--- trunk/formed/formed/model/data.py 2009-02-10 09:58:34 UTC (rev 310)
+++ trunk/formed/formed/model/data.py 2009-02-24 09:05:34 UTC (rev 311)
@@ -45,12 +45,19 @@
class PageNode(Node):
def __init__(self):
Node.__init__(self)
+ self.setAttribute("invisible", "")
+ def setInvisible(self, flag):
+ self.setAttribute("invisible", flag and "true" or "")
+
def allWidgets(self, mode=None, allModes=None):
collector = WidgetCollector()
self.visit(collector.visitor, mode, allModes)
return collector.widgets
+ def isInvisible(self):
+ return self.getAttribute("invisible") and True or False
+
class GroupNode(Node):
def __init__(self):
Node.__init__(self)
More information about the Formed-commits
mailing list