Re: [Twisted-Python] SQL ORM for Twisted & PostgreSQL?

2013-08-21 Thread Mike Winter (miwinter)
This reminded me of something I read years ago from Doug Schmidt on a pattern half sync half async: http://www.cs.wustl.edu/~schmidt/PDF/PLoP-95.pdf I feel it is relevant but the picture may be upside down in relation to writing twisted wrappers which may want to wrap a blocking API. On Aug 2

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-20 Thread Mike Winter
This looks like the kind of thing that could involve using Deferred as part of solution. Instead of callLater(0.8,doWrite), design the mechanism to wire up event-source to fire the deferred and make doWrite be the callback. On Oct 20, 2012, at 8:29:10AM, gelin yan wrote: > Hi All > > A few

Re: [Twisted-Python] Synchronous calls using Twisted?

2012-05-17 Thread Mike Winter
half async/half sync is not as obscure as you may think: www.cs.wustl.edu/~schmidt/PDF/PLoP-95.pdf On May 17, 2012, at 12:06:04PM, Andrew Francis wrote: > Message: 1 > Date: Thu, 17 May 2012 00:58:57 +0200 > From: Louis > Subject: [Twisted-Python] Synchronous calls using Twisted? > To: twisted-

Re: [Twisted-Python] telnet works, why wont this client/protocol test?

2012-01-12 Thread Mike Winter
Thanks for the link, added to code as comment. On Jan 12, 2012, at 10:06:16AM, Augusto Mecking Caringi wrote: > On Thu, Jan 12, 2012 at 3:56 PM, Mike Winter wrote: >> That helps, thanks. >> >> I know that http processing does \r\n, I suppose there is an rfc that says

Re: [Twisted-Python] telnet works, why wont this client/protocol test?

2012-01-12 Thread Mike Winter
That helps, thanks. I know that http processing does \r\n, I suppose there is an rfc that says this is reasonable, and LineReceiver is designed to be used in http for the same reason. On Jan 12, 2012, at 4:42:45AM, Itamar Turner-Trauring wrote: > At a guess, it's because by default LineReceiv

[Twisted-Python] telnet works, why wont this client/protocol test?

2012-01-12 Thread Mike Winter
i can telnet to the port given in test-code below and it interacts appropriately. The connection is to a regular portforwarder and the server is an Answer-server: class Answer(LineReceiver): answers = {'How are you?': 'Fine', 'no': 'No!?!', None : "I don't know