[Twisted-Python] plugin vs. dropin

Phil Christensen phil at bubblehouse.org
Wed Nov 26 16:08:14 EST 2003

I've figured out that part. I created a plugin directory, and i set the
type to "myPluginType"...now how do i access my plugin from within the

i've got this in my plugins.tml file:

register ("My plugin package",
		description = """
		Provides functionality to my app.
		type ="myPluginType")

i did the following in the interpreter:

>>> from twisted.python import plugin
>>> plugin.getPlugIns("myPluginType")
[<Plugin 'My plugin package' core.plugin>]

so i guess my question is, what to i do with this plugin object? i see it
has a property named "module", which is the string i gave it of
"core.plugin". this file doesn't exist yet since i don't know what to put
in it.

i guess i just need a little more guidance. i'm looking through the code
too, but i'm not sure what calls what...

thanks for any help,


> On Wed, Nov 26, 2003 at 02:49:46PM -0500, Phil Christensen wrote:
[snip snip snip]
>> 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.

More information about the Twisted-Python mailing list