Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread glyph
On 11 Apr, 08:39 pm, exar...@divmod.com wrote: On Sat, 11 Apr 2009 21:54:08 +0200, Esteve Fernandez wrote: Shouldn't twisted and twisted/plugins be non-importable? I thought twisted and twisted/plugins must not have __init__.py files in order for the plugin system to be able to find them (t

Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread luper rouch
2009/4/11 Esteve Fernandez : > On Saturday 11 April 2009 19:42:31 Jean-Paul Calderone wrote: >> They can be imported from "twisted.plugins".  For example, if you name your >> "dropin" file foo_plugins.py, then "from twisted.plugins import >> foo_plugins" should work and let you test any code that i

Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread Jean-Paul Calderone
On Sat, 11 Apr 2009 21:54:08 +0200, Esteve Fernandez wrote: On Saturday 11 April 2009 19:42:31 Jean-Paul Calderone wrote: They can be imported from "twisted.plugins". For example, if you name your "dropin" file foo_plugins.py, then "from twisted.plugins import foo_plugins" should work and let

Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread Esteve Fernandez
On Saturday 11 April 2009 19:42:31 Jean-Paul Calderone wrote: > They can be imported from "twisted.plugins". For example, if you name your > "dropin" file foo_plugins.py, then "from twisted.plugins import > foo_plugins" should work and let you test any code that is part of your > plugin definition

Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread Terry Jones
Hi Luper > "luper" == luper rouch writes: luper> I have a last question, I put my plugins in a 'twisted/plugins' luper> subfolder of my project, and running them from the command line luper> works fine. How can I invoke them in unit tests (I need to be able luper> to start and stop them), si

Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread Jean-Paul Calderone
On Sat, 11 Apr 2009 19:29:28 +0200, luper rouch wrote: 2009/4/11 Jean-Paul Calderone : On Sat, 11 Apr 2009 00:24:37 +0200, luper rouch wrote: I would like to port my Application API based services to the twistd plugin interface, to be able to retrieve command line options. In the existing s

Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread luper rouch
2009/4/11 Jean-Paul Calderone : > On Sat, 11 Apr 2009 00:24:37 +0200, luper rouch > wrote: >> >> I would like to port my Application API based services to the twistd >> plugin interface, to be able to retrieve command line options. >> >> In the existing services, I reimplemented t.a.s.MultiService

Re: [Twisted-Python] Plugin startup and shutdown actions

2009-04-11 Thread Jean-Paul Calderone
On Sat, 11 Apr 2009 00:24:37 +0200, luper rouch wrote: I would like to port my Application API based services to the twistd plugin interface, to be able to retrieve command line options. In the existing services, I reimplemented t.a.s.MultiService startService() and stopService() to do some act