Comment on duplication of code/markup found during styling project.

This commit is contained in:
Kevin Reid 2009-05-03 13:34:42 -07:00
parent d0b4fd4689
commit 3e80676a29
3 changed files with 4 additions and 0 deletions

View File

@ -109,6 +109,8 @@ class ResultsBase:
sharemap = []
servers = {}
# FIXME: The two tables below contain nickname-and-nodeid table column markup which is duplicated with each other, introducer.xhtml, and deep-check-results.xhtml. All of these (and any other presentations of nickname-and-nodeid) should be combined.
for shareid in sorted(data["sharemap"].keys()):
serverids = data["sharemap"][shareid]
for i,serverid in enumerate(serverids):

View File

@ -64,6 +64,7 @@ class IntroducerRoot(rend.Page):
return simplejson.dumps(res, indent=1) + "\n"
# FIXME: This code is duplicated in root.py and introweb.py.
def data_version(self, ctx, data):
return get_package_versions_string()
def data_import_path(self, ctx, data):

View File

@ -177,6 +177,7 @@ class Root(rend.Page):
child_report_incident = IncidentReporter()
#child_server # let's reserve this for storage-server-over-HTTP
# FIXME: This code is duplicated in root.py and introweb.py.
def data_version(self, ctx, data):
return get_package_versions_string()
def data_import_path(self, ctx, data):