about.py

来自「The BuildBot is a system to automate the」· Python 代码 · 共 34 行

PY
34
字号
from twisted.web import htmlfrom buildbot.status.web.base import HtmlResourceimport buildbotimport twistedimport sysclass AboutBuildbot(HtmlResource):    title = "About this Buildbot"    def body(self, request):        data = ''        data += '<h1>Welcome to the Buildbot</h1>\n'        data += '<h2>Version Information</h2>\n'        data += '<ul>\n'        data += ' <li>Buildbot: %s</li>\n' % html.escape(buildbot.version)        data += ' <li>Twisted: %s</li>\n' % html.escape(twisted.__version__)        data += ' <li>Python: %s</li>\n' % html.escape(sys.version)        data += ' <li>Buildmaster platform: %s</li>\n' % html.escape(sys.platform)        data += '</ul>\n'        data += '''<h2>Source code</h2><p>Buildbot is a free software project, released under the terms of the<a href="http://www.gnu.org/licenses/gpl.html">GNU GPL</a>.</p><p>Please visit the <a href="http://buildbot.net/">Buildbot Home Page</a> formore information, including documentation, bug reports, and sourcedownloads.</p>'''        return data

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?