Skip to content

Commit

Permalink
Merge pull request #1275 from thedylman/fix_new_style_steps_in_web
Browse files Browse the repository at this point in the history
fix more AssertionError's for new-style steps in web status ui
  • Loading branch information
Mikhail Sobolev committed Oct 20, 2014
2 parents 45ef323 + 74e8dc4 commit 449e63b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion master/buildbot/status/web/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def __init__(self, step_status):
def getChild(self, path, req):
for log in self.step_status.getLogs():
if path == log.getName():
if log.hasContents():
if log.old_hasContents():
return IHTMLLog(interfaces.IStatusLog(log))
return NoResource("Empty Log '%s'" % path)
return HtmlResource.getChild(self, path, req)
2 changes: 1 addition & 1 deletion master/buildbot/status/web/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def content(self, req, cxt):
# it chops up the step name. If we quote it and '/'s
# are not safe, it escapes the / that separates the
# step name from the log number.
logs.append({'has_contents': l.hasContents(),
logs.append({'has_contents': l.old_hasContents(),
'name': l.getName(),
'link': req.childLink("logs/%s" % urllib.quote(l.getName()))})

Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/status/web/waterfall.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def getBox(self, req):

for num in range(len(logs)):
name = logs[num].getName()
if logs[num].hasContents():
if logs[num].old_hasContents():
url = urlbase + "/logs/%s" % urllib.quote(name)
else:
url = None
Expand Down

0 comments on commit 449e63b

Please sign in to comment.