Skip to content

Commit

Permalink
Directory listings require Twisted >= 9.0.0 (fixes buildbot#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed May 1, 2010
1 parent 39c1a74 commit 9e427ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildbot/status/web/base.py
Expand Up @@ -252,8 +252,8 @@ def content(self, request, cxt):
template = request.site.buildbot_service.templates.get_template("empty.html")
return template.render(**cxt)

# DirectoryLister isn't available in Twisted-2.5.0, so we just skip
# this particular feature.
# DirectoryLister isn't available in Twisted-2.5.0, and isn't compatible with what
# we need until 9.0.0, so we just skip this particular feature.
have_DirectoryLister = False
if hasattr(static, 'DirectoryLister'):
have_DirectoryLister = True
Expand Down Expand Up @@ -296,7 +296,7 @@ def directoryListing(self):
self.defaultType)
else:
return static.Data("""
Directory Listings require Twisted-8.0.0 or later
Directory Listings require Twisted-9.0.0 or later
""", "text/plain")


Expand Down

0 comments on commit 9e427ad

Please sign in to comment.