From a4baf8491eb270597e91640b3925a5e79420b551 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Wed, 14 Jan 2015 17:36:57 -0500 Subject: [PATCH] Using html.WebStatus directly --- master.cfg | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/master.cfg b/master.cfg index 384f515..137d12b 100644 --- a/master.cfg +++ b/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 ## webserver treats everything it doesn't know as text/html. Sigh... -class WebStatusWithTextDefault(html.WebStatus): - def __init__ (self, http_port, authz, **kwargs): - html.WebStatus.__init__ (self, http_port = http_port, - authz = authz, **kwargs) +# class WebStatusWithTextDefault(html.WebStatus): +# def __init__ (self, http_port, authz, **kwargs): +# html.WebStatus.__init__ (self, http_port = http_port, +# authz = authz, **kwargs) - def setupSite(self): - result = html.WebStatus.setupSite(self) - self.site.resource.defaultType = r"text/plain" - return result +# def setupSite(self): +# result = html.WebStatus.setupSite(self) +# self.site.resource.defaultType = r"text/plain" +# return result authz_cfg=authz.Authz( # change any of these to True to enable; see the manual for more @@ -107,7 +107,8 @@ authz_cfg=authz.Authz( stopAllBuilds = 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, # forceBuild = True,