[Twisted-Python] [ANN] Foolscap-0.4.2 released

2009-06-23 Thread Brian Warner
I've recently released Foolscap-0.4.2 (and noticed that I hadn't sent out a release announcement since 0.2.8 over a year ago, despite there being 2 major and 4 minor releases in that time. my bad). The home page is http://foolscap.lothar.com/trac . Download this release from PyPI, or from http://f

Re: [Twisted-Python] adbapi and multiple queries in single

2009-06-23 Thread Vishal Shetye
Phil thanks for the reply. I plan to do something similar. [sorry for not providing code snippet.] I have modified your code (please ignore queries and other errors) However I am not very much convinced with this approach, As you can see validate of ObjectGateway is a public method which also needs

Re: [Twisted-Python] Twisted Trial

2009-06-23 Thread glyph
(snip) On 01:42 pm, grick...@coldstorage.com wrote: > File "c:\python25\lib\site-packages\twisted\plugins\testplugin.py", >line 12, in >from twisted.plugin import IPlugin, ITestPlugin, ITestPlugin2 >exceptions.ImportError: cannot import name ITestPlugin >test_example > ExampleTestCase >

Re: [Twisted-Python] untwisting twistd

2009-06-23 Thread Jared Gisin
Thanks for the thoughts. I suppose I should have been a bit clearer on my specific use case that is not handled. Certainly, I do want to take advantage of twistd for the reasons listed below (daemonizing, handling log files, pidfile, etc); however, the problem that I have is that I have a very s

Re: [Twisted-Python] adbapi and multiple queries in single transaction.

2009-06-23 Thread Phil Christensen
On Jun 23, 2009, at 9:45 AM, Vishal Shetye wrote: > I initially thought of putting all the queries per operation in a > runInteraction. However this results in code-duplication as many > queries are shared between different operations. It seems like the easiest way to deal with this would be t

[Twisted-Python] adbapi and multiple queries in single transaction.

2009-06-23 Thread Vishal Shetye
Hi, I am working on an application that uses twisted and twisted.e.adbapi with sqlite in the backend. All db queries are put in separate functions in class say tableGateway.py which uses runOperation, runQuery etc as appropriate. A layer that uses it, lets say objectGateway.py, defines operations

[Twisted-Python] Twisted Trial

2009-06-23 Thread Gerrat Rickert
I know this is a very basic question, but I can't seem to get trial working correctly. (I'm working on Windows XP, with python 2.5.4 and twisted 8.2.0) I've created a very simple example: I have a file, 'test_example.py' It's contents are (between === lines): =

[Twisted-Python] Fwd: SerialPort.loseConnection() in Win32, workaround

2009-06-23 Thread biziap biziap
Hi, I have finished the neat version of using the SerialPort in Win32. Without the bothering loseConnection tracebacks. First of all, I have to apology for the mistake in my last post. I claimed that calling the flashInput and flashOutput can be used as the workaround.I am wrong. The way I use with

[Twisted-Python] twisted.web2 only can serve one connection at the same time when using scgi?

2009-06-23 Thread Chris
Hi everyone, I am trying to use apache2 + scgi to write a application,I found twisted.web2 supports the scgi module.I began to use this library to write some code to test how to use it,just like this: from twisted.web2 import server, channel, resource,http,http_headers from twisted.application imp