Re: [Twisted-Python] TDD using Trial

2009-09-01 Thread Nathan Lundquist
Tim and Paul, Thanks for all the information. Exactly what I was looking for. Paul Hubbard wrote: > I also found this quite helpful in writing StringIO tests - > > http://twistedmatrix.com/trac/browser/branches/trial-tutorial-2443-2/doc/core/howto/trial.xhtml > > My code is nowhere near the sta

[Twisted-Python] FTPClient - aborting transfers

2009-09-01 Thread Matt Bennett
Hello all, I've got an FTPClient implementation very similar to the one at [1], and I've added the ability to retrieve a file from the server with the following snippet: class FileReceiver(Protocol): """ Protocol subclass that writes received data to a local file. """ def __in

Re: [Twisted-Python] connecting through an http proxy

2009-09-01 Thread exarkun
On 05:28 pm, hellfe...@gmail.com wrote: >First of let me say that I'm *very* new to twisted (I'm only trying to >patch >an app that uses twisted). So sorry if this is a stupid question. > >The problem is I am behind an http proxy (with authentication), so I >need to >connect through that proxy. T

Re: [Twisted-Python] Re : Re : Telnet server using Twisted and AuthenticatingTelnetProtocol

2009-09-01 Thread exarkun
On 08:49 pm, filoufake-pyt...@yahoo.fr wrote: >Hello, > >Thanks to your help, the server now requests a username and password >for the authentication. >Once the password has been enterred, nothing happened on the client >side. I'm even not able to escape from the client. I have to ctrl-c in >the

[Twisted-Python] twisted.positioning progress report + small review question

2009-09-01 Thread Laurens Van Houtven
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi :-) Just reporting progress on twisted.positioning. The NMEA parser is basically functional, it's got one or two warts I don't quite like but I intend on fixing once I figured out how (apparently GSV is *supposed* to be awkward, but I'm going to t

[Twisted-Python] Re : Re : Telnet server using Twisted and AuthenticatingTelnetProtocol

2009-09-01 Thread filoufake-python
Hello, Thanks to your help, the server now requests a username and password for the authentication. Once the password has been enterred, nothing happened on the client side. I'm even not able to escape from the client. I have to ctrl-c in the server console. If I well understood the doc, for eac

[Twisted-Python] twistd plugin or .tac file?

2009-09-01 Thread Martin-Louis Bright
hi! Which is the recommended or preferred way to deploy an app that will leverage twistd: designing the app as a twistd plugin or creating a Service and using a .tac file? Also, if you need to expose your functionality as a Service to properly use the twisted application framework, how do you achi

[Twisted-Python] connecting through an http proxy

2009-09-01 Thread Salil
First of let me say that I'm *very* new to twisted (I'm only trying to patch an app that uses twisted). So sorry if this is a stupid question. The problem is I am behind an http proxy (with authentication), so I need to connect through that proxy. The documentation doesn't help (me) much and neith

Re: [Twisted-Python] deciding to use twisted or not

2009-09-01 Thread Rob Hoadley
I've handled this problem 2 ways: 1) for almost realtime... using twisted and .read() file as glyph mentioned and 2) used splunk and it's functionality to send search "matching" data to a program that in turn does http notification. This is at 5 min search intervals. As previous posters have ment

Re: [Twisted-Python] deciding to use twisted or not

2009-09-01 Thread Martin-Louis Bright
PyInotify only allows you to detect file changes, leaving you with the task of asynchronously sending http requests. -martin On Thu, Aug 27, 2009 at 12:19 PM, Mikhail wrote: > Martin-Louis Bright gmail.com> writes: > > > > > > > I am using linux, and I want the daemon to be as responsive as po