[Formed-commits] r421 - trunk/formed/formed/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 8 15:04:59 CET 2010
Author: roland
Date: 2010-11-08 15:04:52 +0100 (Mon, 08 Nov 2010)
New Revision: 421
Modified:
trunk/formed/formed/model/data.py
Log:
use strings instead of booleans, otherwise bad things happen
Modified: trunk/formed/formed/model/data.py
===================================================================
--- trunk/formed/formed/model/data.py 2010-11-08 13:30:02 UTC (rev 420)
+++ trunk/formed/formed/model/data.py 2010-11-08 14:04:52 UTC (rev 421)
@@ -60,14 +60,14 @@
class GroupNode(Node):
def __init__(self):
Node.__init__(self)
- self.attributes["repeat"] = False
+ self.attributes["repeat"] = ""
self.attributes["invisible"] = ""
def isRepeat(self):
return self.getAttribute("repeat") and True or False
def setRepeat(self, repeat):
- repeat = repeat and True or ""
+ repeat = repeat and "true" or ""
self.setAttribute("repeat", repeat)
def isInvisible(self):
@@ -109,7 +109,7 @@
self.attributes["min"] = ""
self.attributes["max"] = ""
self.attributes["digest"] = ""
- self.attributes["repeat"] = True
+ self.attributes["repeat"] = "true"
def getDigest(self):
return self.getAttribute("digest")
More information about the Formed-commits
mailing list