[Twisted-Python] trac / website woes

Matthias Urlichs smurf at smurf.noris.de
Sat Jan 13 13:09:45 EST 2007

I hate Trac. Especially the one on twistedmatrix.

- My previous login ("smurfix") seems to suffer from a lost password. The
website does not have an obvious place to request it.

- I tried to create a new login. Reporting a bug with it requires an email
address. The page to enter the email address does not have a Submit button.

- Not entering login data results in an empty page.

On to the real bug; somebody else can enter it into Trac.
Or, even better, fix the source.

It seems that Deferreds are tricky.

--- /usr/lib/python2.4/site-packages/twisted/spread/pb.py	2006-05-12 15:50:13.000000000 +0200
+++ /tmp/pb.py	2007-01-13 18:48:50.508925924 +0100
@@ -651,6 +651,9 @@
     def notifyOnDisconnect(self, notifier):
         """Call the given callback when the Broker disconnects."""
         assert callable(notifier)
-        self.disconnects.append(notifier)
+        if self.disconnected:
+            notifier()
+        else:
+            self.disconnects.append(notifier)
     def notifyOnFail(self, notifier):

... as exemplified by this traceback:

2007/01/13 18:26 CET [Broker,0,] Error: <twisted.python.failure.Failure twisted.spread.pb.PBConnectionLost>
2007/01/13 18:26 CET [Broker,0,] [Failure instance: Traceback (failure with no frames): twisted.spread.pb.PBConnectionLost: [Failure instance: Traceback (failure with no frames): twisted.internet.error.ConnectionDone: Connection was closed cleanly.
2007/01/13 18:26 CET [Broker,0,] ]
2007/01/13 18:26 CET [Broker,0,] ]
2007/01/13 18:27 CET [Broker,1,] Looking for 00:11:d8:54:e6:2d
2007/01/13 18:27 CET [-] Peer will receive following PB traceback:
2007/01/13 18:27 CET [-] Traceback (most recent call last):
          File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py", line 226, in mainLoop
          File "/usr/lib/python2.4/site-packages/twisted/internet/base.py", line 534, in runUntilCurrent
            f(*a, **kw)
          File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 229, in callback
          File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 294, in _startRunCallbacks
        --- <exception caught here> ---
          File "/usr/lib/python2.4/site-packages/twisted/internet/defer.py", line 307, in _runCallbacks
            self.result = callback(self.result, *args, **kw)
          File "/usr/lib/python2.4/site-packages/twisted/spread/pb.py", line 1747, in _loggedIn
          File "/usr/lib/python2.4/site-packages/twisted/spread/pb.py", line 654, in notifyOnDisconnect
        exceptions.AttributeError: 'NoneType' object has no attribute 'append'

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
 - -
<dracus> Ctrl+Option+Command + P + R
<Knghtbrd> dracus - YE GODS!  That's worse than EMACS!
<LauraDax> hehehehe
<dracus> don't ask what that does :P

More information about the Twisted-Python mailing list