[Twisted-Python] ESMTP extension

2009-05-28 Thread Nicolas Toper
Hi, I am using SMTP-AUTH with Twisted. I have extended smtp.mail to handle LOGIN and PLAIN on the server side (the version I have handles only CRAM-MD5). I am adding currently DIGEST-MD5. Do you want a patch? If yes, what is the best way to submit a patch (I could not find it on the wiki)? Best

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-28 Thread Dan
Thanks for all your replies. Greg wrote: > You might want to look into Orbited, there are a number of Django > examples > out there: > > http://www.orbited.org This looks very cool. http://preview.tinyurl.com/3suqth (CometDaily) makes it seem extremely easy to develop for. Gonna play with th

Re: [Twisted-Python] Automatic test for Twisted

2009-05-28 Thread David Ripton
On 2009.05.28 16:41:20 -0400, Drew Smathers wrote: > On Thu, May 28, 2009 at 4:24 PM, Juanjo Conti wrote: > > is there a way to write sort of unittest for Twisted and run them? > > Yes, with twisted.trial: > > http://twistedmatrix.com/projects/core/documentation/howto/testing.html Another optio

Re: [Twisted-Python] Guidance on Proxy-type Application

2009-05-28 Thread Dan
Semi, OT: Having glyph's example (or one like it) would've probably shaved a week off my initial foray into Twisted. I respectfully recommend that a version containing a docstring or two be included somewhere on the site, possibly alongside the "Finger" tutorial under the heading "a simple e

Re: [Twisted-Python] Guidance on Proxy-type Application

2009-05-28 Thread glyph
On 01:23 am, asb.b...@gmail.com wrote: I have just started to look at the Twisted framework and would like to put it to use for a new project I am working on. Not being very familiar with the framework and fairly new to Python in general I would like to ask a design/architecture question. (I

Re: [Twisted-Python] Automatic test for Twisted

2009-05-28 Thread glyph
On 08:44 pm, ber...@luffy.cx wrote: OoO En cette soirée bien amorcée du jeudi 28 mai 2009, vers 22:24, Juanjo Conti disait�: is there a way to write sort of unittest for Twisted and run them? Twisted even has its own engine to run unit tests. Look at the sources of Twisted in th

Re: [Twisted-Python] Automatic test for Twisted

2009-05-28 Thread Vincent Bernat
OoO En cette soirée bien amorcée du jeudi 28 mai 2009, vers 22:24, Juanjo Conti disait : > is there a way to write sort of unittest for Twisted and run them? Twisted even has its own engine to run unit tests. Look at the sources of Twisted in the test/ directory. There is a lot of unit

Re: [Twisted-Python] Automatic test for Twisted

2009-05-28 Thread Drew Smathers
On Thu, May 28, 2009 at 4:24 PM, Juanjo Conti wrote: > Hi, > > is there a way to write sort of unittest for Twisted and run them? > Yes, with twisted.trial: http://twistedmatrix.com/projects/core/documentation/howto/testing.html -Drew ___ Twisted-Pyt

[Twisted-Python] Automatic test for Twisted

2009-05-28 Thread Juanjo Conti
Hi, is there a way to write sort of unittest for Twisted and run them? -- Juanjo Conti ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Guidance on Proxy-type Application

2009-05-28 Thread Jean-Paul Calderone
On Thu, 28 May 2009 15:22:20 -0400, Aaron Bush wrote: >Thanks John. > >Here is some sample code that is somewhat working for me right now. Any and >all comments are greatly appreciated. > > [snip] > - I need to determine how to better handle the case where the connection >made via ReconnectingCli

Re: [Twisted-Python] Guidance on Proxy-type Application

2009-05-28 Thread Aaron Bush
Thanks John. Here is some sample code that is somewhat working for me right now. Any and all comments are greatly appreciated. 1) I setup a netcat listener on port 8080. 2) Start the twisted program, it connects to 8080 and then fires up a listener on port 808 from the ChattyMCProtocol protocol.

Re: [Twisted-Python] Guidance on Proxy-type Application

2009-05-28 Thread John Santos
Hi Adam - I'm in pretty much the same situation as you and am working on a similar problem. Very much a Python and Twisted newbie. The program I'm working on needs to talk to a variety of clients and to a single server, with more-or-less permanent connections to all of them. My problem is some

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-28 Thread Esteve Fernandez
On Wednesday 27 May 2009 21:48:25 Alex Clemesha wrote: > I wrote up some thoughts on this here: > http://clemesha.org/blog/2009/apr/23/Django-on-Twisted-using-latest-twisted >-web-wsgi/ > > basically it comes down to running Django off the very latest WSGI > code (in the trunk still) > found in twi

Re: [Twisted-Python] Reactor callback from the wrong thread

2009-05-28 Thread Itamar Shtull-Trauring
On Thu, 2009-05-28 at 14:04 +0200, Lars Ivar Igesund wrote: > If anyone has a good advice, then I'd appreciate it. You can call any reactor API from another thread using reactor.callFromThread, or the more useful twisted.internet.threads.blockingCallFromThread. So just wrap all places that call i

Re: [Twisted-Python] Upcoming Sprint

2009-05-28 Thread Itamar Shtull-Trauring
I should be there for some of the day, at least. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] twistd -y and 'adbapi.ConnectionPool.runWithConnection'

2009-05-28 Thread glyph
On 05:54 am, j...@hipro.co.in wrote: >Hello all, > >I am doing a 'runWithConnection' call from the 'startService' of a >service.Service. In the callback, I startup more services based on the >results of the 'runWithConnection' and attach them to the main >application object. > >This works fine whe

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-28 Thread glyph
On 12:36 pm, mica...@gmail.com wrote: 2009/5/27 s s : I wrote up some thoughts on this here: http://clemesha.org/blog/2009/apr/23/Django-on-Twisted-using-latest- twisted-web-wsgi/ I had some very strange errors and gave up and used CherryPy which worked right out of the box. �Has the Twis

Re: [Twisted-Python] Twisted protocol as Django data source

2009-05-28 Thread Michael Hudson
2009/5/27 s s : >> I wrote up some thoughts on this here: >> http://clemesha.org/blog/2009/apr/23/Django-on-Twisted-using-latest-twisted-web-wsgi/ >> >> basically it comes down to running Django off the very latest WSGI >> code (in the trunk still) >> found in twisted.web, which I've found to work

Re: [Twisted-Python] Reactor callback from the wrong thread

2009-05-28 Thread Lars Ivar Igesund
Hi, thanks for the reply. On Wed, May 27, 2009 at 5:43 PM, Jean-Paul Calderone wrote: > On Wed, 27 May 2009 15:08:49 +0200, Lars Ivar Igesund > wrote: >>Hi! >> >>I have an issue where the reactor calls the callback from a different >>thread than the one the reactor is running in. > > Generally