[Buildbot-commits] buildbot/buildbot interfaces.py,1.55,1.56

Brian Warner warner at users.sourceforge.net
Wed Aug 1 23:42:29 UTC 2007


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

Modified Files:
	interfaces.py 
Log Message:
[project @ document+use IEventSource. Closes #60.]

Original author: warner at lothar.com
Date: 2007-08-01 23:41:03+00:00

Index: interfaces.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/interfaces.py,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- interfaces.py	1 Aug 2007 22:08:31 -0000	1.55
+++ interfaces.py	1 Aug 2007 23:42:27 -0000	1.56
@@ -323,6 +323,14 @@
         """Unregister an IStatusReceiver. No further status messgaes will be
         delivered."""
 
+class IEventSource(Interface):
+    def eventGenerator():
+        """This function creates a generator which will yield all of this
+        object's status events, starting with the most recent and progressing
+        backwards in time. These events provide the IStatusEvent interface.
+        At the moment they are all instances of buildbot.status.builder.Event
+        or buildbot.status.builder.BuildStepStatus ."""
+
 class IBuildStatus(Interface):
     """I represent the status of a single Build/BuildRequest. It could be
     in-progress or finished."""





More information about the Commits mailing list