[Formed-commits] r301 - in trunk: . formed/formed/plugins/modify
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jan 8 12:57:14 CET 2009
Author: torsten
Date: 2009-01-08 12:57:14 +0100 (Thu, 08 Jan 2009)
New Revision: 301
Modified:
trunk/ChangeLog
trunk/formed/formed/plugins/modify/rules.py
Log:
Add isset operator to autogenerated rules.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-12-17 10:33:37 UTC (rev 300)
+++ trunk/ChangeLog 2009-01-08 11:57:14 UTC (rev 301)
@@ -1,3 +1,10 @@
+2009-01-08 Torsten Irländer <torsten.irlaender at intevation.de>
+
+ Add isset operator to autogenerated rules.
+
+ * formed/formed/plugins/modify/rules.py: Add issed operator to standard
+ autogenerated rules.
+
2008-12-17 Frank Koormann <frank.koormann at intevation.de>
* formed/formed/plugins/export/latex.py: Export form as set of
Modified: trunk/formed/formed/plugins/modify/rules.py
===================================================================
--- trunk/formed/formed/plugins/modify/rules.py 2008-12-17 10:33:37 UTC (rev 300)
+++ trunk/formed/formed/plugins/modify/rules.py 2009-01-08 11:57:14 UTC (rev 301)
@@ -42,7 +42,7 @@
if isinstance(w, (data.ChoiceNode, data.RadioNode)):
expr = "$%s -1 == not" % w.getName()
else:
- expr = "$%s not" % w.getName()
+ expr = "$%s isset" % w.getName()
# create new rule
rule = data.RuleLeaf()
@@ -55,6 +55,5 @@
parent = w.getParent()
parent.addChild(rule)
-
# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 enc=utf-8 :
More information about the Formed-commits
mailing list