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
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
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.
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
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