[Mpuls-commits] r3260 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 29 10:28:22 CEST 2010
Author: torsten
Date: 2010-07-29 10:28:22 +0200 (Thu, 29 Jul 2010)
New Revision: 3260
Modified:
base/trunk/mpulsweb/lib/renderer.py
Log:
* mpulsweb/lib/renderer.py (ViewRenderer._renderChoiceBool): Do not show Bool-Leafs which are inisible as long as they are selected.
Modified: base/trunk/mpulsweb/lib/renderer.py
===================================================================
--- base/trunk/mpulsweb/lib/renderer.py 2010-07-28 15:52:13 UTC (rev 3259)
+++ base/trunk/mpulsweb/lib/renderer.py 2010-07-29 08:28:22 UTC (rev 3260)
@@ -685,7 +685,7 @@
value = meta.getValue()
selected = value == self.stateStack[-1]
out = []
- if not self.ro_mode or selected:
+ if not self.ro_mode and not meta.isInvisible() or selected:
out.append(tag("option", selected=selected, value=value))
out.append(escape(meta.getDescription()))
out.append("</option>")
More information about the Mpuls-commits
mailing list