[Buildbot-commits] buildbot/buildbot/status builder.py, 1.100, 1.101

Brian Warner warner at users.sourceforge.net
Sun Aug 12 22:22:48 UTC 2007


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

Modified Files:
	builder.py 
Log Message:
[project @ ISlaveStatus: provide an interface to read BuildSlave.lastMessageReceived]

Original author: warner at lothar.com
Date: 2007-08-12 22:16:56+00:00

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/builder.py,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- builder.py	12 Aug 2007 07:44:00 -0000	1.100
+++ builder.py	12 Aug 2007 22:22:46 -0000	1.101
@@ -1727,6 +1727,7 @@
 
     def __init__(self, name):
         self.name = name
+        self._lastMessageReceived = 0
 
     def getName(self):
         return self.name
@@ -1736,6 +1737,8 @@
         return self.host
     def isConnected(self):
         return self.connected
+    def lastMessageReceived(self):
+        return self._lastMessageReceived
 
     def setAdmin(self, admin):
         self.admin = admin
@@ -1743,6 +1746,8 @@
         self.host = host
     def setConnected(self, isConnected):
         self.connected = isConnected
+    def setLastMessageReceived(self, when):
+        self._lastMessageReceived = when
 
 class Status:
     """





More information about the Commits mailing list