[Formed-commits] r290 - in trunk: . formed/formed/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 22 11:36:11 CEST 2008


Author: teichmann
Date: 2008-08-22 11:36:11 +0200 (Fri, 22 Aug 2008)
New Revision: 290

Modified:
   trunk/ChangeLog
   trunk/formed/formed/model/nodecomponents.py
Log:
Added attribute 'flags'.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-08-21 11:05:17 UTC (rev 289)
+++ trunk/ChangeLog	2008-08-22 09:36:11 UTC (rev 290)
@@ -1,3 +1,7 @@
+2008-08-22	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/nodecomponents.py: Added attribute 'flags'.
+
 2008-08-21	Sascha L. Teichmann <teichmann at intevation.de>
 
 	* formed/formed/io/document.py: Indent tree while saving

Modified: trunk/formed/formed/model/nodecomponents.py
===================================================================
--- trunk/formed/formed/model/nodecomponents.py	2008-08-21 11:05:17 UTC (rev 289)
+++ trunk/formed/formed/model/nodecomponents.py	2008-08-22 09:36:11 UTC (rev 290)
@@ -28,6 +28,7 @@
         self.attributes["target"]       = ""
         self.attributes["alternative"]  = ""
         self.attributes["function"]     = ""
+        self.attributes["flags"]        = ""
 
     def _broadcast(self, msg, child):
         path = self.pathToRoot()
@@ -103,6 +104,12 @@
     def setModes(self, modes):
         self.setAttribute("modes", modes)
 
+    def setFlags(self, flags):
+        self.setAttribute("flags", func)
+
+    def getFlags(self):
+        return self.getAttribute("flags")
+
     def getParent(self):
         return self.parent
 



More information about the Formed-commits mailing list