Using html.WebStatus directly
This commit is contained in:
parent
ffb6a70bce
commit
a4baf8491e
1 changed files with 10 additions and 9 deletions
19
master.cfg
19
master.cfg
|
@ -85,15 +85,15 @@ from buildbot.status.web import authz, auth
|
||||||
|
|
||||||
## The following class is a hack. It is needed because Builbot's
|
## The following class is a hack. It is needed because Builbot's
|
||||||
## webserver treats everything it doesn't know as text/html. Sigh...
|
## webserver treats everything it doesn't know as text/html. Sigh...
|
||||||
class WebStatusWithTextDefault(html.WebStatus):
|
# class WebStatusWithTextDefault(html.WebStatus):
|
||||||
def __init__ (self, http_port, authz, **kwargs):
|
# def __init__ (self, http_port, authz, **kwargs):
|
||||||
html.WebStatus.__init__ (self, http_port = http_port,
|
# html.WebStatus.__init__ (self, http_port = http_port,
|
||||||
authz = authz, **kwargs)
|
# authz = authz, **kwargs)
|
||||||
|
|
||||||
def setupSite(self):
|
# def setupSite(self):
|
||||||
result = html.WebStatus.setupSite(self)
|
# result = html.WebStatus.setupSite(self)
|
||||||
self.site.resource.defaultType = r"text/plain"
|
# self.site.resource.defaultType = r"text/plain"
|
||||||
return result
|
# return result
|
||||||
|
|
||||||
authz_cfg=authz.Authz(
|
authz_cfg=authz.Authz(
|
||||||
# change any of these to True to enable; see the manual for more
|
# change any of these to True to enable; see the manual for more
|
||||||
|
@ -107,7 +107,8 @@ authz_cfg=authz.Authz(
|
||||||
stopAllBuilds = True,
|
stopAllBuilds = True,
|
||||||
cancelPendingBuild = True,
|
cancelPendingBuild = True,
|
||||||
)
|
)
|
||||||
c['status'].append(WebStatusWithTextDefault (http_port=8010, authz=authz_cfg))
|
#c['status'].append(WebStatusWithTextDefault (http_port=8010, authz=authz_cfg))
|
||||||
|
c['status'].append (html.WebStatus (http_port = 8010, authz = authz_cfg))
|
||||||
|
|
||||||
#c['status'].append(html.WebStatus(http_port=8010,
|
#c['status'].append(html.WebStatus(http_port=8010,
|
||||||
# forceBuild = True,
|
# forceBuild = True,
|
||||||
|
|
Loading…
Reference in a new issue