Re: [Twisted-Python] twisted windows service

2009-08-28 Thread 头太晕
On Fri, Aug 28, 2009 at 7:49 PM, 陶艺夫 wrote: > Hi, > I copied the code from: > http://twistedmatrix.com/pipermail/twisted-python/2007-May/015377.html and > it ran ok. > And then I followed David's advice from here: > http://twistedmatrix.com/pipermail/twisted-python/2007-May/015383.html to > use t

[Twisted-Python] misleading error in twisted.enterprise.adbapi

2009-08-28 Thread Alec Matusis
We are using twisted.enterprise.adbapi for connecting to MySQL. In one of our large tables, the primary key reached its maximum value of 2147483647, and INSERTs became impossible. When I executed the same INSERT from mysql command line manually, it gave: ERROR 1062 (23000): Duplicate entry '2147

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

2009-08-28 Thread Don Dwiggins
Tim Allen wrote: > If you ran python in the same directory where you ran "trial" in your > example, you could say: > > import MyServerTestFile > MyServerTestFile.MyServerTestCase.test_my_server > > ...to refer to a particular test method, and trial will accept the same > syntax: > >

Re: [Twisted-Python] IPv6

2009-08-28 Thread Thijs Triemstra | Collab
Hi Phil, On 28 Aug 2009, at 12:56, Phil Mayers wrote: What's the IPv6 support like in Twisted? See http://twistedmatrix.com/trac/ticket/3014 Cheers, Thijs PGP.sig Description: This is a digitally signed message part ___ Twisted-Python mailing lis

[Twisted-Python] IPv6

2009-08-28 Thread Phil Mayers
What's the IPv6 support like in Twisted? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] twisted windows service

2009-08-28 Thread 陶艺夫
Hi, I copied the code from: http://twistedmatrix.com/pipermail/twisted-python/2007-May/015377.html and it ran ok. And then I followed David's advice from here: http://twistedmatrix.com/pipermail/twisted-python/2007-May/015383.html to use threading.Event to control server's stop, it ran ok too. But

Re: [Twisted-Python] Twisted and wxPython

2009-08-28 Thread 陶艺夫
Thanks, it's absolutely a good sample. It's grateful that there are so many people helpful out there :) 2009/8/28 Kevin Horn > There's also a wxpython example in the twisted subversion repository. See: > > http://twistedmatrix.com/trac/browser/trunk/doc/core/examples/wxdemo.py > > It follows th

Re: [Twisted-Python] Twisted and wxPython

2009-08-28 Thread Kevin Horn
There's also a wxpython example in the twisted subversion repository. See: http://twistedmatrix.com/trac/browser/trunk/doc/core/examples/wxdemo.py It follows the basic pattern that Godson provided. Kevin Horn 2009/8/28 陶艺夫 > Thanks. I'll try it out. > > 2009/8/28 Godson Gera > > from twiste

Re: [Twisted-Python] Twisted and wxPython

2009-08-28 Thread 陶艺夫
Thanks. I'll try it out. 2009/8/28 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 t