[Formed-commits] r431 - trunk/formed/formed/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Dec 13 12:50:21 CET 2010
Author: torsten
Date: 2010-12-13 12:50:21 +0100 (Mon, 13 Dec 2010)
New Revision: 431
Modified:
trunk/formed/formed/model/data.py
Log:
* formed/formed/model/data.py (GroupNode.isRepeat): Issue1565: Fixed
isRepeat function. Check typ instead of repeat attribute. Removed
setRepeat function (not used anywhere)
Modified: trunk/formed/formed/model/data.py
===================================================================
--- trunk/formed/formed/model/data.py 2010-11-24 17:11:42 UTC (rev 430)
+++ trunk/formed/formed/model/data.py 2010-12-13 11:50:21 UTC (rev 431)
@@ -64,12 +64,8 @@
self.attributes["invisible"] = ""
def isRepeat(self):
- return self.getAttribute("repeat") and True or False
+ return isinstance(self, RepeatNode) and True or False
- def setRepeat(self, repeat):
- repeat = repeat and "true" or ""
- self.setAttribute("repeat", repeat)
-
def isInvisible(self):
return self.getAttribute("invisible") and True or False
More information about the Formed-commits
mailing list