"""Write out the web/"""
for host in self.hosts():
- yield "%s: %s\n" % (host.name.encode("utf-8"), host.platform.encode("utf-8"))
+ yield "%s: %s\n" % (host.name, host.platform.encode("utf-8"))
def commit(self):
pass
try:
for l in f:
(host, platform) = l.split(":", 1)
- ret[host.decode("utf-8")] = platform.strip().decode("utf-8")
+ ret[host] = platform.strip().decode("utf-8")
finally:
f.close()
return cls(ret)
build.age,
host.platform.encode("utf-8"),
"<a href='%s?function=View+Host;host=%s;tree=%s;compiler=%s#%s'>%s</a>"
- % (myself, host.name.encode("utf-8"),
- tree, build.compiler.encode("utf-8"), host.name.encode("utf-8"),
- host.name.encode("utf-8")),
+ % (myself, host.name,
+ tree, build.compiler, host.name,
+ host.name),
build.compiler, tree, status, build.status(),
revision_link(myself, revision, tree),
revision_time])
def _render_build_list_header(self, host):
yield "<div class='host summary'>"
yield "<a id='host' name='host'/>"
- yield "<h3>%s - %s</h3>" % (host.encode("utf-8"), self.buildfarm.hostdb.host(host).platform.encode("utf-8"))
+ yield "<h3>%s - %s</h3>" % (host, self.buildfarm.hostdb.host(host).platform.encode("utf-8"))
yield "<table class='real'>"
yield "<thead><tr><th>Target</th><th>Build<br/>Revision</th><th>Build<br />Age</th><th>Status<br />config/build<br />install/test</th><th>Warnings</th></tr></thead>"
yield "<tbody>"
"Tree", "Compiler", "Build Age", "Status", "Warnings")
for build in builds:
yield "%-12s %-10s %-10s %-10s %-10s\n" % (
- build.tree.encode("utf-8"), build.compiler.encode("utf-8"),
+ build.tree, build.compiler,
util.dhm_time(build.age),
str(build.status()), build.err_count())
yield "\n"
self.buildfarm = buildfarm
# host.properties are unicode object and the framework expect string object
- self.hosts = dict([(host.name.encode("utf-8"), host) for host in self.buildfarm.hostdb.hosts()])
+ self.hosts = dict([(host.name, host) for host in self.buildfarm.hostdb.hosts()])
def main_menu(self):
"""main page"""