immutable: make the web display of upload results more human-friendly, like they were before my recent change to the meaning of the "sharemap"

This commit is contained in:
Zooko O'Whielacronx 2009-01-10 14:02:09 -07:00
parent 0f9c11cfde
commit 38bb3e464b

View 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