[Buildbot-commits] buildbot/buildbot/process properties.py, 1.5, 1.6

Brian Warner warner at users.sourceforge.net
Thu May 22 22:13:28 UTC 2008


Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17747/buildbot/process

Modified Files:
	properties.py 
Log Message:
[project @ #124:display-properties-web-status.patch]
Display build properties in the build status page.

Original author: dustin at v.igoro.us
Date: 2008-04-13 20:26:53+00:00

Index: properties.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/properties.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- properties.py	22 May 2008 22:13:17 -0000	1.5
+++ properties.py	22 May 2008 22:13:26 -0000	1.6
@@ -44,6 +44,12 @@
     def getPropertySource(self, name):
         return self.properties[name][1]
 
+    def asList(self):
+        """Return the properties as a sorted list of (name, value, source)"""
+        l = [ (k, v[0], v[1]) for k,v in self.properties.items() ]
+        l.sort()
+        return l
+
     def __repr__(self):
         return repr(dict([ (k,v[0]) for k,v in self.properties.iteritems() ]))
 





More information about the Commits mailing list