From: Zooko O'Whielacronx Date: Sat, 10 Jan 2009 21:02:09 +0000 (-0700) Subject: immutable: make the web display of upload results more human-friendly, like they... X-Git-Tag: allmydata-tahoe-1.3.0~212 X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/module-simplejson.scanner.html?a=commitdiff_plain;h=38bb3e464bfc2f2c4acdf173afbf9fff51d179e6;p=tahoe-lafs%2Ftahoe-lafs.git immutable: make the web display of upload results more human-friendly, like they were before my recent change to the meaning of the "sharemap" --- diff --git a/src/allmydata/web/status.py b/src/allmydata/web/status.py index 9f508813..01bfa284 100644 --- a/src/allmydata/web/status.py +++ b/src/allmydata/web/status.py @@ -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