[Twisted-Python] Re: trac / website woes
Matthias Urlichs
smurf at smurf.noris.de
Sun Jan 14 02:05:32 EST 2007
Hi,
Matthias Urlichs:
> It seems that Deferreds are tricky.
>
Even more so -- apply on top of the last patch:
--- /tmp/pb.py 2007-01-13 18:48:50.508925924 +0100
+++ /usr/lib/python2.4/site-packages/twisted/spread/pb.py 2007-01-13 19:20:15.000000000 +0100
@@ -795,6 +795,9 @@
})
return object
+ if not self.connected:
+ return deferred.fail(failure.Failure(DeadReferenceError()))
+
# XXX This call is NOT REENTRANT and testing for reentrancy is just
# crazy, so it likely won't be. Don't ever write methods that call the
# broker's serialize() method recursively (e.g. sending a method call
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf at smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
"Though a program be but three lines long,
someday it will have to be maintained."
-- The Tao of Programming
More information about the Twisted-Python
mailing list