[Buildbot-devel] writing custom sources?
Kevin Turner
acapnotic at twistedmatrix.com
Sun Jul 27 21:14:00 UTC 2003
On Sun, 2003-07-27 at 11:54, Brian Warner wrote:
> I really need to get a better handle on the
> way Twisted uses "Interfaces" and create an IChangeSource to define what
> those classes are required to do, but basically it should be an object that
> defines the following methods:
Really, creating an IChangeSource does not involve anything more than
you did in this e-mail; Interfaces are largely documentation. Just put
a 'class IChangeSource(Interface)' in front of these methods and add a
__implements__ = (IChangeSource,) attribute to the FreshCVSSource class.
Interfaces are also used by Adapters and Componentized systems, but you
don't need to know anything about those in order to define an Interface.
Cheers,
- Kevin
--
The moon is waning crescent, 3.1% illuminated, 27.9 days old.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://buildbot.net/pipermail/devel/attachments/20030727/1b628f13/attachment.bin>
More information about the devel
mailing list