[Buildbot-commits] buildbot/buildbot/status/web __init__.py, NONE, 1.1 waterfall.py, NONE, 1.1
Brian Warner
warner at users.sourceforge.net
Tue Feb 27 23:03:26 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5417/buildbot/status/web
Added Files:
__init__.py waterfall.py
Log Message:
[project @ web-parts: start rearranging web status files]
Original author: warner at lothar.com
Date: 2007-02-27 20:33:22
--- NEW FILE: __init__.py ---
--- NEW FILE: waterfall.py ---
# -*- test-case-name: buildbot.test.test_web -*-
from __future__ import generators
from twisted.python import log, components
import urllib, re
from twisted.internet import defer, reactor
from twisted.web.resource import Resource
from twisted.web import static, html, server, distrib
from twisted.web.error import NoResource
from twisted.web.util import Redirect, DeferredResource
from twisted.application import strports
from twisted.spread import pb
from zope.interface import Interface, implements
import sys, string, types, time, os.path
from buildbot import interfaces, util
[...1692 lines suppressed...]
def setup(self):
status = self.parent.getStatus()
if self.allowForce:
control = interfaces.IControl(self.parent)
else:
control = None
change_svc = self.parent.change_svc
sr = StatusResource(status, control, change_svc, self.categories,
self.css)
sr.favicon = self.favicon
sr.robots_txt = self.robots_txt
self.site = server.Site(sr)
if self.http_port is not None:
s = strports.service(self.http_port, self.site)
s.setServiceParent(self)
if self.distrib_port is not None:
f = pb.PBServerFactory(distrib.ResourcePublisher(self.site))
s = strports.service(self.distrib_port, f)
s.setServiceParent(self)
More information about the Commits
mailing list