[Twisted-Python] cx_Oracle, Twisted - rollback failed

2009-04-29 Thread Steve Lewis
It looks like the latest version 8.2 tries to rollback without seeing if the connection is even open or not: def rollback(self): if not self._pool.reconnect: self._connection.rollback() return try: self._connection.rollback() cu

Re: [Twisted-Python] cx_Oracle, Twisted - rollback failed

2009-04-29 Thread Jean-Paul Calderone
On Wed, 29 Apr 2009 10:39:30 -0700 (PDT), Steve Lewis wrote: >It looks like the latest version 8.2 tries to rollback without seeing if the >connection is even open or not: > >def rollback(self): >if not self._pool.reconnect: >self._connection.rollback() >retur

[Twisted-Python] deferToThread help

2009-04-29 Thread Minesh Patel
Sorry if this is a newbie question. I have a blocking function that I defer to thread, let's say 'foo' and I would like to add a callback that gets called after say 10 minues after Thread finishes def foo(): # Blocks for a while def bar(): # Do some stuff d = threads.deferToThread(foo) d.

Re: [Twisted-Python] deferToThread help

2009-04-29 Thread Jean-Paul Calderone
On Wed, 29 Apr 2009 11:45:09 -0700, Minesh Patel wrote: >Sorry if this is a newbie question. > >I have a blocking function that I defer to thread, let's say 'foo' and >I would like to add a callback that gets called after say 10 minues >after Thread finishes > >def foo(): > # Blocks for a while

[Twisted-Python] Catching exception on a Serial Connection

2009-04-29 Thread Nestor A. Diaz
Hello, i am newbie to twisted, i am trying to find a way to catch exceptions raised from a protocol over a serial line, like the twisted.protocol.gps.zodiac, i see the demo script, on the twisted website: http://twistedmatrix.com/projects/core/documentation/examples/gpsfix.py but i don't figur