[Twisted-Python] twisted.plugin

Pablo Martí pablo at minimoesfuerzo.org
Thu Jul 19 03:28:37 EDT 2007

On Thu, 2007-07-19 at 09:15 +0200, Vincent Bernat wrote:
> Hi !
> I am trying to use twisted.plugin with no luck. Here is how I do:
> I have a class IServicePlugin that inherits from Interface.
> In some package x.y.z (with empty __init__.py), I have a module w
> containing a
> class c inheriting of object and implementing IPlugin and IServicePlugin.
> To
> load plugins, here is what I do:
> import x.y.z as package
> for plugin in getPlugins(IServicePlugin, package):
>   print repr(plugin)
> But I get nothing.

Add an instance of your plugin at the end of your file, that should do.


More information about the Twisted-Python mailing list