[Twisted-Python] plugin vs. dropin
Jp Calderone
exarkun at intarweb.us
Wed Nov 26 17:27:30 MST 2003
On Wed, Nov 26, 2003 at 04:08:14PM -0500, Phil Christensen wrote:
> 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
> app?
>
> i've got this in my plugins.tml file:
>
> register ("My plugin package",
> "core.plugin",
> 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>]
Call .load() on it, and do something with the result.
Jp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: </pipermail/twisted-python/attachments/20031126/76053f96/attachment.sig>
More information about the Twisted-Python
mailing list