[Buildbot-commits] buildbot/buildbot/status client.py,1.14,1.15

Brian Warner warner at users.sourceforge.net
Sat Apr 23 10:37:02 UTC 2005


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

Modified Files:
	client.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-75
Creator:  Brian Warner <warner at monolith.lothar.com>

make 'buildbot statusgui' work again, at least somewhat

2005-04-23  Brian Warner  <warner at lothar.com>

   * buildbot/scripts/runner.py: make 'statuslog' and 'statusgui' be
   the sub-commands that log buildmaster status to stdout and to a
   GUI window, respectively.

   * buildbot/clients/gtkPanes.py: overhaul. basic two-row
   functionality is working again, but all the step-status and ETA
   stuff is missing. Commented out a lot of code pending more
   overhaul work.

   * buildbot/status/client.py: make sure that IRemote(None) is None


Index: client.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/client.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- client.py	6 Dec 2004 07:36:33 -0000	1.14
+++ client.py	23 Apr 2005 10:37:00 -0000	1.15
@@ -15,6 +15,10 @@
 class IRemote(components.Interface):
     pass
 
+# make sure that IRemote(None) is None
+components.registerAdapter(lambda n: None,
+                           type(None), IRemote)
+
 class RemoteBuilder(pb.Referenceable):
     def __init__(self, builder):
         self.b = builder
@@ -43,6 +47,7 @@
 
     def remote_getEvent(self, number):
         return IRemote(self.b.getEvent(number))
+
 components.registerAdapter(RemoteBuilder,
                            interfaces.IBuilderStatus, IRemote)    
 
@@ -140,6 +145,7 @@
 
     def remote_getResults(self):
         return self.s.getResults()
+
 components.registerAdapter(RemoteBuildStep,
                            interfaces.IBuildStepStatus, IRemote)    
 
@@ -155,6 +161,7 @@
         return self.s.getHost()
     def remote_isConnected(self):
         return self.s.isConnected()
+
 components.registerAdapter(RemoteSlave,
                            interfaces.ISlaveStatus, IRemote)
 
@@ -168,6 +175,7 @@
         return self.s.getText()
     def remote_getColor(self):
         return self.s.getColor()
+
 components.registerAdapter(RemoteEvent,
                            interfaces.IStatusEvent, IRemote)
 
@@ -192,6 +200,7 @@
     def remote_getChunks(self):
         return self.l.getChunks()
     # TODO: subscription interface
+
 components.registerAdapter(RemoteLog, builder.LogFile, IRemote)
 # TODO: something similar for builder.HTMLLogfile ?
 
@@ -205,6 +214,7 @@
         return self.c.files
     def getComments(self):
         return self.c.comments
+
 components.registerAdapter(RemoteChange, changes.Change, IRemote)
 
 





More information about the Commits mailing list