[Buildbot-devel] Creating a new StatusReceiver type

Eli Carter eli.carter at commprove.com
Thu Oct 19 19:41:26 UTC 2006


> All,
>
> I'm trying to integrate buildbot into a larger workflow system, and need
> to use the buildbot build events to trigger operations in that system.[1]
> I was thinking in terms of writing a StatusReceiver sub-class that would
> call "hooks" in the same way that svn, cvs, etc. do.
>
> As I understand it, the StatusReceiver object must subscribe to the events
> by calling .subscribe(self) on the build master's status object
> (.getStatus()).  But... how do I get the build master object to be able to
> get the status object to be able to get notification of the events?  The
> closest example I could find was the MailNotifier, but that appears to be
> using twisted services or something, and I don't think I need anything
> that complex.

And I found the answer:
    def setServiceParent(self,parent)
        parent.getStatus().subscribe(self)
But setServiceParent is not in IStatusReceiver.  Shouldn't it be?  Or am I
misunderstanding something?

Eli





More information about the devel mailing list