[Twisted-Python] Multiple Twisted Application Plugins in the same directory?

Beau Hargis beau at subobscur.us
Wed Sep 12 19:29:19 MDT 2007


That indeed worked. It did occur to me for a fleeting moment when I looked at the man page; however, when I ran 'twistd --help-reactors' it spit out nothing so I was not sure of exactly what it wanted or if it worked at all.

----- Original Message ----
From: Christopher Armstrong <radix at twistedmatrix.com>
To: Twisted general discussion <twisted-python at twistedmatrix.com>
Sent: Wednesday, September 12, 2007 5:15:53 PM
Subject: Re: [Twisted-Python] Multiple Twisted Application Plugins in the same directory?

On 9/12/07, Beau Hargis <beau at subobscur.us> wrote:
> For one of the services I want to use pollreactor or epollreactor, so each of the Services has only 4 lines in it:
>
> from twisted.internet import pollreactor
> pollreactor.install()
> import Project.Processors.ProcessorX
> theService = Project.Processors.ProcessorX.ProcXServiceMaker()

Don't install a reactor in the plugin: in fact, don't import the
reactor at all. The correct way to choose the reactor is by passing
the "-r" or "--reactor" argument to 'twistd', like 'twistd -r poll
myplugin'

-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/

_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python







More information about the Twisted-Python mailing list