[Formed-commits] r312 - in trunk: . formed/formed/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Mar 12 17:14:27 CET 2009
Author: torsten
Date: 2009-03-12 17:14:26 +0100 (Thu, 12 Mar 2009)
New Revision: 312
Modified:
trunk/ChangeLog
trunk/formed/formed/model/data.py
Log:
Introduced new order attribute in datefields
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-02-24 09:05:34 UTC (rev 311)
+++ trunk/ChangeLog 2009-03-12 16:14:26 UTC (rev 312)
@@ -1,3 +1,11 @@
+2009-03-12 Torsten Irländer <torsten.irlaender at intevation.de>
+
+ Introduced new order attribute for date fields
+
+ * formed/formed/model/data.py: Order fields can be used to define to
+ ordering of datefields withing the document. Needed for automatic
+ generation of consistency rules.
+
2009-02-09 Sascha L. Teichmann <teichmann at intevation.de>
* formed/formed/model/data.py: Allow pages to be 'invisible'.
Modified: trunk/formed/formed/model/data.py
===================================================================
--- trunk/formed/formed/model/data.py 2009-02-24 09:05:34 UTC (rev 311)
+++ trunk/formed/formed/model/data.py 2009-03-12 16:14:26 UTC (rev 312)
@@ -244,7 +244,14 @@
class DateLeaf(Leaf):
def __init__(self):
Leaf.__init__(self)
+ self.attributes["order"] = ""
+ def getOrder(self):
+ return self.getAttribute('order')
+
+ def setOrder(self, order):
+ self.setAttribute('order', order)
+
class RuleLeaf(Leaf):
def __init__(self):
Leaf.__init__(self)
More information about the Formed-commits
mailing list