projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54c0ffd
)
webapi deep-check: show the root as <root>, rather than an empty path string
author
Brian Warner
<warner@lothar.com>
Thu, 23 Oct 2008 23:03:59 +0000
(16:03 -0700)
committer
Brian Warner
<warner@lothar.com>
Thu, 23 Oct 2008 23:03:59 +0000
(16:03 -0700)
src/allmydata/web/checker_results.py
patch
|
blob
|
history
diff --git
a/src/allmydata/web/checker_results.py
b/src/allmydata/web/checker_results.py
index 4c7030c45c695ed41f9dbb0fa7d67e633f28d53a..477a01c586ce3d76ab7477591ae9fa1b2cf675ad 100644
(file)
--- a/
src/allmydata/web/checker_results.py
+++ b/
src/allmydata/web/checker_results.py
@@
-365,7
+365,11
@@
class DeepCheckResults(rend.Page, ResultsBase, ReloadMixin):
def render_object(self, ctx, data):
path, r = data
- ctx.fillSlots("path", "/".join(self._html(path)))
+ if path:
+ pathstring = "/".join(self._html(path))
+ else:
+ pathstring = "<root>"
+ ctx.fillSlots("path", pathstring)
ctx.fillSlots("healthy", str(r.is_healthy()))
storage_index = r.get_storage_index()
ctx.fillSlots("storage_index", self._render_si_link(ctx, storage_index))