[Twisted-Python] plugin vs. dropin
exarkun at intarweb.us
Wed Nov 26 15:24:08 EST 2003
On Wed, Nov 26, 2003 at 02:49:46PM -0500, Phil Christensen wrote:
> i was going through the docs, and i found the two classes in
> twisted/python/plugin.py, and i was wondering what the difference is
> between the two.
> i'd like to be able to make a sort of plugin that when the plugin package
> is in the path, it interacts in arbitrary ways with my main application.
> however, i don't think i'd want it to appear in mktap, as that doesn't
> really make sense in this situation.....or does it?
a DropIn is an abstraction for an entire plugins.tml file.
a PlugIn is a single entity, typically corresponding to a register() call
in a plugins.tml file.
mktap only shows plugins of type "tap" (because that is the only kind of
plugin it knows how to use!), so if you make your plugins of a different
type, they won't show up there.
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20031126/85157397/attachment.pgp
More information about the Twisted-Python