[Twisted-Python] twisted.plugin question

Terry Jones terry at jon.es
Thu Jun 15 14:18:13 MDT 2006


>>>>> "JP" == Jean-Paul Calderone <exarkun at divmod.com> writes:
JP> On Thu, 15 Jun 2006 17:09:26 +0200, Terry Jones <terry at jon.es> wrote:

JP> One problem with the code attached is that it creates a plugin class
JP> which implements plugin.IMaterial but then goes and searches for
JP> plugins which provide __main__.IMaterial.  Since these aren't the same
JP> interface, even without the pickle error no results will be found.

OK, thanks for the tip. I've fixed things - see next mail.

>> BTW, the code on that page in the section Extending an Existing Program
>> is missing a 'from zope.interface import implements'. Also, the
>> assumption that code is in a file called imatsim.py, and the curious
>> 'from matsim import imatsim' could be explained. I guess the later is
>> just a harmless anachronism?

JP> I've created a ticket in the tracker for expanding the howto to explain
JP> these things.  Thanks for pointing out that they were not well
JP> explained.

Thanks. I should have created the ticket myself. I just added another, but
now see it was a duplicate.

Terry




More information about the Twisted-Python mailing list