[Twisted-Python] Plugin startup and shutdown actions

2009-04-10 Thread luper rouch
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 actions at startup and shutdown. How can I do this in a plug

Re: [Twisted-Python] PBClientFactory and getRootObject

2009-04-10 Thread Fabrizio Mancini
On Fri, Apr 10, 2009 at 6:09 PM, Jean-Paul Calderone wrote: > I don't really understand either of these questions. > Hi JP, and thank you for your reply. Don't worry if you didn't understand the question, i just didn't understand deeply how deferred worked. I just needed to chain different deferr

Re: [Twisted-Python] adbapi and long-running transactions

2009-04-10 Thread Wolfgang Powisch (privat)
Am 10.04.2009 18:16, Wolfgang Powisch (privat) schrieb: > What I need now is to start a Transaction and access this Transaction from > multiple callbacks within my application-code in the main-thread. In the last > callback (and/or errback) I will then either commit or rollback the > transaction.

Re: [Twisted-Python] Fork/Spawn children to accept connections on the same port.

2009-04-10 Thread Eric York
From: Jean-Paul Calderone Date: April 10, 2009 8:57:19 AM PDT To: Twisted general discussion Subject: Re: [Twisted-Python] Fork/Spawn children to accept connections on the same port. Reply-To: Twisted general discussion pyt...@twistedmatrix.com> On Mon, 6 Apr 2009 15:25:39 -0700, Eric Yo

Re: [Twisted-Python] Two-way telnet client problem

2009-04-10 Thread Greg Taylor
I guess what I'm getting confused about is how to get my listen server (MUD server) talking to this IMC client connection. Let's say one of my player wants to send a message over the IMC (client) connection. This is done by telnetting into the MUD server and entering a command like: imcmessage "hel

RE: [Twisted-Python] RE: Question about Descriptors and SelectReactor

2009-04-10 Thread glyph
On 03:44 pm, exar...@divmod.com wrote: On Wed, 8 Apr 2009 19:37:19 -0700, Alec Matusis wrote: Longer answer: Looks like maybe you want to contribute a patch for this ticket :) http://twistedmatrix.com/trac/ticket/2234 I will look at this at some point (really swamped with work). But my

Re: [Twisted-Python] PBClientFactory and getRootObject

2009-04-10 Thread Jean-Paul Calderone
On Thu, 2 Apr 2009 23:31:12 +0200, Fabrizio Mancini wrote: Hi everyone, I'm writing a server and a client using Perspective Broker with no Avatar and no auth. The server accumulates some data using a DeferredQueue. The clients using a remote call retrieve one item per time from the queue and ela

Re: [Twisted-Python] Two-way telnet client problem

2009-04-10 Thread Jean-Paul Calderone
On Thu, 9 Apr 2009 02:34:23 -0400, Greg Taylor wrote: Hello all, I'm still pretty new with Twisted, so the documentation is a little bit cryptic and strange to wade through. I'm writing a MUD server that I'd like to add InterMUD Protocol (IMC) to. This basically allows any of the games running

[Twisted-Python] adbapi and long-running transactions

2009-04-10 Thread Wolfgang Powisch (privat)
Hi, I'm using twisted.enterprise.adbapi for non-blocking database interaction with a postgres database. Currently I'm only using runQuery or runOperation for running single queries or some own little helper methods "runQueries" or "runOperations" for running multiple queries within one Transactio

Re: [Twisted-Python] Can't quit a Tkinter application on MacOS X when using Twisted; fix? workaround?

2009-04-10 Thread Jean-Paul Calderone
On Tue, 07 Apr 2009 12:20:50 -0700, "Russell E. Owen" wrote: I am trying to convert a cross-platform Python/Tkinter application to use Twisted and have run into a problem: at least on MacOS X I can no longer quit the application. I have appended a minimal script showing the problem. The exam

Re: [Twisted-Python] trac server error

2009-04-10 Thread Jean-Paul Calderone
On Tue, 07 Apr 2009 16:13:53 +0200, Johann Borck wrote: there seems to be some serious problem with http://twistedmatrix.com/trac/ this is what the browser shows me on about one third of the requests: Sorry. This just happens sometimes. It's due to some bug in trac. I think that it general

Re: [Twisted-Python] Fork/Spawn children to accept connections on the same port.

2009-04-10 Thread Jean-Paul Calderone
On Mon, 6 Apr 2009 15:25:39 -0700, Eric York wrote: I am trying to get the highest level of performance using all of the processors cores on a server. In the past, a unix app would bind/listen to a socket and then fork or spawn children to accept connections on that socket. I can’t see how t

RE: [Twisted-Python] RE: Question about Descriptors and SelectReactor

2009-04-10 Thread Jean-Paul Calderone
On Wed, 8 Apr 2009 19:37:19 -0700, Alec Matusis wrote: Longer answer: Looks like maybe you want to contribute a patch for this ticket :) http://twistedmatrix.com/trac/ticket/2234 I will look at this at some point (really swamped with work). But my question is: are you going to use pytho