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" return "None"
l = T.ul() l = T.ul()
for shnum, peerids in sorted(sharemap.items()): for shnum, peerids in sorted(sharemap.items()):
for peerid in peerids: peerids = ', '.join([idlib.shortnodeid_b2a(i) for i in peerids])
peerid_s = idlib.shortnodeid_b2a(peerid) l[T.li["%d -> placed on [%s]" % (shnum, peerids)]]
l[T.li["%d -> %s" % (shnum, peerid_s)]]
return l return l
d.addCallback(_render) d.addCallback(_render)
return d return d