From 38bb3e464bfc2f2c4acdf173afbf9fff51d179e6 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Sat, 10 Jan 2009 14:02:09 -0700 Subject: [PATCH] immutable: make the web display of upload results more human-friendly, like they were before my recent change to the meaning of the "sharemap" --- src/allmydata/web/status.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.45.2