[Twisted-Python] Plugins in files with hyphenated names found in 2.5.0 but not in 8.1.0
mithrandi at mithrandi.net
Tue Jan 20 07:53:09 EST 2009
* Terry Jones <terry at jon.es> [2009-01-20 12:23:26 +0100]:
> We just upgraded to Twisted 8.1 from 2.5 and discovered that
> twisted.plugin.getPlugins no longer finds our plugins.
> After much head scratching, Esteve noticed that the plugins were not being
> returned because the are in files that have hyphens in their names. There's
> no mention of this in the release notes, at least that I can see. Perhaps
> the change crept in unnoticed.
The exact change, I believe, is that plugin source files have to be
valid python modules; that is to say, you have to be able to do:
> I guess this restriction on plugin-containing filenames should either be
> documented, or the code should be made to work as it did. I'm happy to open
> a ticket - though the text of the ticket would depend on which solution is
I believe this change was deliberate, so I expect it won't be reverted,
but perhaps someone else can comment further on the design motivations
(and confirm that my explanation is correct).
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20090120/1d3c5702/attachment.pgp
More information about the Twisted-Python