[Twisted-Python] how to write a doc for Twisted with Sphinx?

2011-09-21 Thread Jean-Daniel
Hello, Can we write a doc for Twisted using Sphinx at this point? What is the status of the Lore to Sphinx transition project? I could find: #4621 lore2sphinx should make pretty links to included files. #4586 Code-listings generated by lore2sphinx should include line-numbers Is there any ot

[Twisted-Python] sample twistorm code?

2011-03-16 Thread Jean-Daniel
Hello, I writing a script parsing a large log file and shoveling it into Postgresql. 1. I would like to read some codes examples using the twisted + storm integration, any idea of where to look? Also. I was thinking about modeling a line of logs with a namedtuple, because it is handy to create o

Re: [Twisted-Python] PyCon extreme Twisted talk!

2010-10-26 Thread Jean-Daniel
Cool, The slides has gone through many improvements folllowing the presentation. There was a lot of room for improvement. Too big for 20 minutes maybe, and not enough preparation. On Mon, Oct 25, 2010 at 4:38 PM, Laurens Van Houtven wrote: > Hi Jean-Daniel! > > Yes, I was at pycon-

Re: [Twisted-Python] asynchronous python generator

2010-07-12 Thread Jean Daniel
> Maybe you've got bigger things in mind, but I don't know what all of > that buys you, at least from your example use case (client connects, > prints response from server, quits on 'stop'). What's wrong with keeping > it simple and handling responses in the Protocol? > > def lineReceived(self, lin

Re: [Twisted-Python] asynchronous python generator

2010-07-12 Thread Jean Daniel
> You didn't have to switch to a while loop here.  The simplest fix for > your for loop is this: > >   �...@inlinecallbacks >    def gotConnection(conn): >        for lineEvent in conn: >            line = yield lineEvent >            print line Yes, I did that too. I wanted the loop to be able to

[Twisted-Python] asynchronous python generator

2010-07-12 Thread Jean Daniel
Hello, I wrote a small client protocol which connects to a notification server. The client role is to connect, and then to print the notification which comes from the server until the server says "stop" (a netcat server do just fine, I use "nc -C -l 6789"). I would like the API for this client pro

[Twisted-Python] conceptually, why a deferred can't be used more than once?

2010-07-08 Thread Jean Daniel
Dear list, Concerning the concept of the deferred, why is it more useful to go with a deferred which gets consumed and can only be fired once? In my small script I realize I need to take special care that the deferred has not been used, and that I must recreate explicitly a deferred for each netw

[Twisted-Python] in a factory: assert not self.usedUp

2010-06-23 Thread Jean Daniel
Hello, I have three questions on a code examples, and actually I have seen this pattern in several places in Twisted. The code are copied from twisted/doc/mail/examples/imap4client.py 1. In the code below, what is the purpose of an assert checking that the member attribute promptDeferred is empty

[Twisted-Python] deferred as a Protocol class attribute, Protocol as class attribute of a Factory ...

2010-06-16 Thread Jean Daniel
Hello, Reading the SMTP client tutorial[1], I do not see the impact of the factory having a protocol defined as a class attribute. Especially when here is a big fat warning [2] that I should actually understand the inplications. My guess is that in this first case the protocol methods do not need

Re: [Twisted-Python] draft of an article on Twisted

2010-04-29 Thread Jean Daniel
thanks for your feedback, it helps. On Thu, Apr 29, 2010 at 12:06 AM, Glyph Lefkowitz wrote: > > On Apr 27, 2010, at 9:49 AM, Jean Daniel wrote: > > Hello, > > Hi Jean! > > I have written an introductory article to Twisted, and I would be > delighted to see it pub

[Twisted-Python] draft of an article on Twisted

2010-04-27 Thread Jean Daniel
Hello, I have written an introductory article to Twisted, and I would be delighted to see it published on Linux Weekly News some day. It is available at: http://jdb.github.com/concurrent.html Here is the plan in brief: 1. what Twisted is: what "network framework" means, 2. what network concurren

Re: [Twisted-Python] AsyncQueue is still unavailable

2009-06-18 Thread Jean Daniel
The Storm ORM is popular, has talented people working on it and is planning to merge the MS SQL backend (available on launchpad) from the company called Zeomega. https://storm.canonical.com/ https://code.launchpad.net/~zeomega Storm and Twisted can be used together, see this thread: https://lists