Initializing webstatus class

This commit is contained in:
Sergio Durigan Junior 2014-12-26 16:36:15 -05:00
parent 56bdb82ed1
commit 5dc18ae4ba

View file

@ -85,6 +85,9 @@ from buildbot.status.web import authz, auth
## The following class is a hack. It is needed because Builbot's
## webserver treats everything it doesn't know as text/html. Sigh...
class WebStatusWithTextDefault(html.WebStatus):
def __init__ (self, **kwargs):
html.WebStatus.__init__ (self, kwargs)
def setupSite(self):
result = html.WebStatus.setupSite(self)
self.site.resource.defaultType = r"text/plain"