[Twisted-Python] Re: Re: PB - detecting loss of connection

aReferenceable.broker.notifyOnDisconnect(f)
f() will now be called on disconnect, aReferenceable the result of getObjectAt() or any call that returns a RemoteReference.
Thanks, Itamar - that's just what I wanted. -Richard

Re: Re: PB - detecting loss of connectionHas anyone got twisted running with wxPython 2.4.1.2? If I run the example wxdemo.py with Twisted 1.0.6 and wxPython 2.4.1.2 on Windows I get the following error: Traceback (most recent call last): File "C:\dev\controlled\mpjuke\unused\wxdemo.py", line 65, in ? demo() File "C:\dev\controlled\mpjuke\unused\wxdemo.py", line 61, in demo reactor.run() File "C:\dev\controlled\mpjuke\pymods\twisted\internet\default.py", line 121, in run self.startRunning(installSignalHandlers=installSignalHandlers) File "C:\dev\controlled\mpjuke\pymods\twisted\internet\default.py", line 115, in startRunning self._handleSignals() File "C:\dev\controlled\mpjuke\pymods\twisted\internet\default.py", line 87, in _handleSignals signal.signal(signal.SIGINT, self.sigInt) SystemError: error return without exception set If I change the demo to run with reactor.run(installSignalHandlers=0) it works fine, but I'd prefer to have this enabled. The problem occurs with Python 2.2 or 2.3 with this version of wxPython but it didn't occur with wxPython 2.3.2.1. Thanks, Mike.

On Fri, 1 Aug 2003 13:05:04 +0100 "Michael Porter" <mporter@despammed.com> wrote:
As far as we can tell this is a wxPython bug - someone opened a report in the wxPython SF bug tracker, see if it's been resolved. -- Itamar Shtull-Trauring http://itamarst.org/ http://www.zoteca.com -- Python & Twisted consulting

Re: Re: PB - detecting loss of connectionHas anyone got twisted running with wxPython 2.4.1.2? If I run the example wxdemo.py with Twisted 1.0.6 and wxPython 2.4.1.2 on Windows I get the following error: Traceback (most recent call last): File "C:\dev\controlled\mpjuke\unused\wxdemo.py", line 65, in ? demo() File "C:\dev\controlled\mpjuke\unused\wxdemo.py", line 61, in demo reactor.run() File "C:\dev\controlled\mpjuke\pymods\twisted\internet\default.py", line 121, in run self.startRunning(installSignalHandlers=installSignalHandlers) File "C:\dev\controlled\mpjuke\pymods\twisted\internet\default.py", line 115, in startRunning self._handleSignals() File "C:\dev\controlled\mpjuke\pymods\twisted\internet\default.py", line 87, in _handleSignals signal.signal(signal.SIGINT, self.sigInt) SystemError: error return without exception set If I change the demo to run with reactor.run(installSignalHandlers=0) it works fine, but I'd prefer to have this enabled. The problem occurs with Python 2.2 or 2.3 with this version of wxPython but it didn't occur with wxPython 2.3.2.1. Thanks, Mike.

On Fri, 1 Aug 2003 13:05:04 +0100 "Michael Porter" <mporter@despammed.com> wrote:
As far as we can tell this is a wxPython bug - someone opened a report in the wxPython SF bug tracker, see if it's been resolved. -- Itamar Shtull-Trauring http://itamarst.org/ http://www.zoteca.com -- Python & Twisted consulting
participants (3)
-
Itamar Shtull-Trauring
-
Michael Porter
-
Richard.Townsend@edl.uk.eds.com