changeset 259:27824d3add92

Add a tags field to the revision status to keep track of which tags apply to that build
author Bernhard Herzog <bh@intevation.de>
date Fri, 24 Apr 2009 17:55:29 +0000
parents bb98e728f25b
children 6aeae11ca7fe
files test/test_status.py treepkg/status.py
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_status.py	Fri Apr 17 18:48:58 2009 +0000
+++ b/test/test_status.py	Fri Apr 24 17:55:29 2009 +0000
@@ -55,6 +55,7 @@
         self.assertEquals(status.status.name, "unknown")
         self.assertEquals(status.start, None)
         self.assertEquals(status.stop, None)
+        self.assertEquals(status.tags, "")
 
     def test_date(self):
         timestamp = datetime(2007, 3, 9, 17, 32, 55)
--- a/treepkg/status.py	Fri Apr 17 18:48:58 2009 +0000
+++ b/treepkg/status.py	Fri Apr 24 17:55:29 2009 +0000
@@ -199,6 +199,8 @@
     start = DateFieldDesc(default=None)
     stop = DateFieldDesc(default=None)
 
+    tags = StringFieldDesc(default="")
+
     notification_mail = EnumFieldDesc()
     notification_mail.add("notification_sent",
                           "notification mail has been sent", default=True)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)