[Formed-commits] r402 - trunk/formed/formed/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 4 18:18:58 CEST 2010


Author: torsten
Date: 2010-10-04 18:18:57 +0200 (Mon, 04 Oct 2010)
New Revision: 402

Modified:
   trunk/formed/formed/model/data.py
Log:
* formed/formed/model/data.py (RuleLeaf.__init__): Added new attribute "tag" for rule-leafs


Modified: trunk/formed/formed/model/data.py
===================================================================
--- trunk/formed/formed/model/data.py	2010-09-30 07:44:28 UTC (rev 401)
+++ trunk/formed/formed/model/data.py	2010-10-04 16:18:57 UTC (rev 402)
@@ -296,6 +296,7 @@
         Leaf.__init__(self)
         self.attributes["expr"] = ""
         self.attributes["mark"] = ""
+        self.attributes["tag"] = ""
         self.expr = None
 
     def shallowCopy(self):
@@ -323,5 +324,11 @@
     def setMark(self, mark):
         self.setAttribute("mark", mark)
 
+    def setTag(self, expr):
+        self.setAttribute('tag', expr)
 
+    def getTag(self):
+        return self.getAttribute("tag")
+
+
 # vim:set ts=4 sw=4 si et sta sts=4:



More information about the Formed-commits mailing list