immutable: make the web display of upload results more human-friendly, like they...
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 10 Jan 2009 21:02:09 +0000 (14:02 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 10 Jan 2009 21:02:09 +0000 (14:02 -0700)
src/allmydata/web/status.py

index 9f508813d9ecaa90e0af9445450abee08b60427c..01bfa284dfa76254300c1fb154c9a20802d3db95 100644 (file)
@@ -47,9 +47,8 @@ class UploadResultsRendererMixin(RateAndTimeMixin):
                 return "None"
             l = T.ul()
             for shnum, peerids in sorted(sharemap.items()):
-                for peerid in peerids:
-                    peerid_s = idlib.shortnodeid_b2a(peerid)
-                    l[T.li["%d -> %s" % (shnum, peerid_s)]]
+                peerids = ', '.join([idlib.shortnodeid_b2a(i) for i in peerids])
+                l[T.li["%d -> placed on [%s]" % (shnum, peerids)]]
             return l
         d.addCallback(_render)
         return d