Re: [Twisted-Python] Twisted and wxPython

2009-08-27 Thread Godson Gera
from twisted.internet import wxreactor wxreactor.install() from twisted.internet import reactor . write your code here . reactor.registerWxApp(app) reactor.run() You don't need wx mainloop. The key thing here is to import wxreactor first and install it and then import reactor. 'app' in

[Twisted-Python] Twisted and wxPython

2009-08-27 Thread 陶艺夫
Hi, Anyone can give me a sample app skeleton to get two frameworks work together well? Or just give me a link where I can figure out the technical details. Thanks. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Tim Allen
Don Dwiggins wrote: > Phil Christensen wrote: > > trial takes an argument at the command-line where you can specify a > > package or test case. > > > > for example: > > > > trial twisted > > trial twisted.test > > trial twisted.test.test_explorer > > trial twisted.test.test_exp

Re: [Twisted-Python] A C/S Application over Internet

2009-08-27 Thread 陶艺夫
thank you for sharing your experience. Frankly, I do love twisted for its decent implementation of asyn call concept. 2009/8/28 Phil Christensen > On Aug 27, 2009, at 10:57 AM, 陶艺夫 wrote: > > Thank you, Phil. > > > > Pyro has many examples, so I can understand it easily. I know > > Twisted is gr

Re: [Twisted-Python] Telnet example

2009-08-27 Thread Darvin nb
yes! 2009/8/28 Johann Borck : > Darvin nb wrote: >> Can anybody tell me, is there telnet example written with Twisted? >> > like twisted.conch.telnet ? > > hth, Johann > > ___ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twis

Re: [Twisted-Python] Telnet example

2009-08-27 Thread Johann Borck
Darvin nb wrote: > Can anybody tell me, is there telnet example written with Twisted? > like twisted.conch.telnet ? hth, Johann ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted

[Twisted-Python] Telnet example

2009-08-27 Thread Darvin nb
Can anybody tell me, is there telnet example written with Twisted? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Steve Steiner (listsin)
On Aug 27, 2009, at 4:08 PM, Phil Christensen wrote: > On Aug 27, 2009, at 4:00 PM, Don Dwiggins wrote: >> I've been successfully and happily using Trial for a while now for >> development of a server. I have many tests at this point; during >> development of a new feature, I'd like to have a co

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Steve Steiner (listsin)
On Aug 27, 2009, at 4:00 PM, Don Dwiggins wrote: > I've been successfully and happily using Trial for a while now for > development of a server. I have many tests at this point; during > development of a new feature, I'd like to have a convenient way to > only > run the tests relevant to that

Re: [Twisted-Python] twisted.names.error.DNSNameError on MacOsX but not on linux

2009-08-27 Thread Gabriel Rossetti
Ralph Meijer wrote: > On Tue, 2009-08-11 at 18:30 +0200, Gabriel Rossetti wrote: > >> [..] >> > > Apparently you modified the original example here: > > >> [..] >> connector = XMPPClientConnector(reactor, "10.204.232.117", f) >> connector.connect() >> > > This would

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Don Dwiggins
Phil Christensen wrote: > trial takes an argument at the command-line where you can specify a > package or test case. > > for example: > > trial twisted > trial twisted.test > trial twisted.test.test_explorer > trial twisted.test.test_explorer.TestBrowser > trial t

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Phil Christensen
On Aug 27, 2009, at 4:00 PM, Don Dwiggins wrote: > I've been successfully and happily using Trial for a while now for > development of a server. I have many tests at this point; during > development of a new feature, I'd like to have a convenient way to > only > run the tests relevant to that fe

[Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Don Dwiggins
I've been successfully and happily using Trial for a while now for development of a server. I have many tests at this point; during development of a new feature, I'd like to have a convenient way to only run the tests relevant to that feature. I'm hacking it at this point by prefixing the name

Re: [Twisted-Python] How to capture output from transport of HTTPClientFactory?

2009-08-27 Thread exarkun
On 06:30 pm, konr...@smelkovs.com wrote: >Hi, >HTTPClientFactory uses self.transport to do reads/writes. I would like >to >have a copy of all data in and out for debugging/logging purposes. >How to do that (best?)? twisted.protocols.policies.TrafficLoggingFactory may do what you want. Jean-Paul

[Twisted-Python] How to capture output from transport of HTTPClientFactory?

2009-08-27 Thread Konrads Smelkovs
Hi, HTTPClientFactory uses self.transport to do reads/writes. I would like to have a copy of all data in and out for debugging/logging purposes. How to do that (best?)? -- Konrads Smelkovs Applied IT sorcery. ___ Twisted-Python mailing list Twisted-Python

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

2009-08-27 Thread Mikhail
Martin-Louis Bright gmail.com> writes: > > > I am using linux, and I want the daemon to be as responsive as possible to log events, so I think I would rather have it sit on the same box as where the log is produced. (Perhaps I'm wrong about this?) So I'm going to try Cary's ProcessProtocol appr

Re: [Twisted-Python] A C/S Application over Internet

2009-08-27 Thread Phil Christensen
On Aug 27, 2009, at 10:57 AM, 陶艺夫 wrote: > Thank you, Phil. > > Pyro has many examples, so I can understand it easily. I know > Twisted is great. I think your "switching" must mean something :) . > So I decide to use twisted PB. Great! I also remembered one thing that I found was extremely use

Re: [Twisted-Python] A C/S Application over Internet

2009-08-27 Thread 陶艺夫
Thank you, Phil. Pyro has many examples, so I can understand it easily. I know Twisted is great. I think your "switching" must mean something :) . So I decide to use twisted PB. 2009/8/27 Phil Christensen > On Aug 27, 2009, at 9:33 AM, 陶艺夫 wrote: > > I want to develop an C/S app over internet u

Re: [Twisted-Python] A C/S Application over Internet

2009-08-27 Thread Phil Christensen
On Aug 27, 2009, at 9:33 AM, 陶艺夫 wrote: > I want to develop an C/S app over internet using twisted Perspective > Broker. The server will run as a windows service, and the clients > will be wxPython desktop applications. > Has anyone done the same thing or known the trick to do it? Shoud > I

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

2009-08-27 Thread exarkun
On 24 Aug, 11:07 pm, filoufake-pyt...@yahoo.fr wrote: >Thank you Jean-Paul for replying, > >I still have some things that I don't understand: > >If I put your piece of code in my factory's protocol, I can connect to >the server but as soon as I enter the username, I got the an error >message tell

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

2009-08-27 Thread Martin-Louis Bright
I am using linux, and I want the daemon to be as responsive as possible to log events, so I think I would rather have it sit on the same box as where the log is produced. (Perhaps I'm wrong about this?) So I'm going to try Cary's ProcessProtocol approach, and if that doesn't work, Glyph's LoopingCa

Re: [Twisted-Python] OT - adbapi, connection timeouts, mysql - OT

2009-08-27 Thread exarkun
On 26 Aug, 11:08 pm, clay.gerr...@rackspace.com wrote: >The way that sqlalchemy implements pool_recycle is "irrespective of >idle time" best I can tell from looking at it. Keeping track of the >last_used_time seems like it would have been equally reasonable, >although perhaps even additional ov

[Twisted-Python] twisted.positioning progress report

2009-08-27 Thread Laurens Van Houtven
Time for a little show and tell :-) Watch as line noise gets transformed into beautiful Python structures: http://paste.pocoo.org/show/136539/ Yay. Still to do: - A bit of documentation here and there, some of this NMEA stuff is far too arcane to be docstringless - A few methods need rem

[Twisted-Python] A C/S Application over Internet

2009-08-27 Thread 陶艺夫
Hi, I want to develop an C/S app over internet using twisted Perspective Broker. The server will run as a windows service, and the clients will be wxPython desktop applications. Has anyone done the same thing or known the trick to do it? Shoud I use PB or Pyro or SPyro? Which is the best? Thanks

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

2009-08-27 Thread Chris Adams
If you're using a linux based system, you may have some luck setting up syslogger to forward logging packets to the remote ip address, and running the twisted daemon on the other box, and sending notifications if the heartbeat from the monitored machine stops. I was working on a project recently t