from buildbot.www.plugin import Application class <%=AppName%>Application(Application): pass # create the interface for the setuptools entry point ep = <%=AppName%>Application(__name__, "<%=description%>")
class <%=AppName%>Application(Application): pass
# Copyright 2012-2013 Isotoma Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from .configurator import TravisConfigurator from buildbot.www.plugin import Application from .api import Api # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot travis custom ui") api = Api(ep) ep.resource.putChild("api", api.app.resource()) __all__ = ['TravisConfigurator', 'ep']
# the ingredients if properties[self.INGREDIENTS] not in self.allIngredients or\ not properties[self.PIZZA]: # we trigger a specific error message in PIZZA only def f(): return defer.fail(ValidationError('Invalid pizza')) nestedProp = self.createNestedPropertyName(self.PIZZA) yield collector.collectValidationErrors(nestedProp, f) @defer.inlineCallbacks def updateFromKwargs(self, kwargs, properties, collector, **kw): yield super(NestedExample, self).updateFromKwargs(kwargs, properties, collector, **kw) # the properties we have are in the form # {nestedexample: {input: <url>, # ingredients: <ingredients>}} # we just flatten the dict to have # - input, and # - ingredients # in properties for prop, val in properties.pop(self.type).items(): properties[prop] = val yield self.validateProperties(collector, properties) # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot nested parameter example") api = Api(ep) ep.resource.putChild("api", api.app.resource())
ctx.set_font_size(int(config['font_size'])) return ctx.text_extents(text)[2] + 2 def makesvg(self, right_text, status=None, left_text=None, left_color=None, config=None): """Renders an SVG from the template, using the specified data """ right_color = config['color_scheme'].get(status, "#9f9f9f") # Grey left_text = left_text or config['left_text'] left_color = left_color or config['left_color'] left = { "color": left_color, "text": left_text, "width": self.textwidth(left_text, config) } right = { "color": right_color, "text": right_text, "width": self.textwidth(right_text, config) } template = self.env.get_template(config['template_name'].format(**config)) return template.render(left=left, right=right, config=config) # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot badges", ui=False) ep.resource = Api(ep).app.resource()
from buildbot.www.plugin import Application # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot tags section menu plugin", ui=True)
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members from buildbot.www.plugin import Application # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot Flathub View UI")
def __init__(self, modulename, description, ui=True): Application.__init__(self, modulename, description, ui) self.resource = self.api.resource()
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members from buildbot.www.plugin import Application # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot React Plugin BoilerPlate")
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members from buildbot.www.plugin import Application # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot UI")
from buildbot.www.plugin import Application from buildbot.util import unicode2bytes from .api import Api # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot profiler") api = Api(ep) ep.resource.putChild(b"api", api.app.resource())
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members from buildbot.www.plugin import Application # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot Grid View plugin")
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members from buildbot.www.plugin import Application # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot Console View UI")
status=None, left_text=None, left_color=None, config=None): """Renders an SVG from the template, using the specified data """ right_color = config['color_scheme'].get(status, "#9f9f9f") # Grey left_text = left_text or config['left_text'] left_color = left_color or config['left_color'] left = { "color": left_color, "text": left_text, "width": self.textwidth(left_text, config) } right = { "color": right_color, "text": right_text, "width": self.textwidth(right_text, config) } template = self.env.get_template( config['template_name'].format(**config)) return template.render(left=left, right=right, config=config) # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot badges", ui=False) ep.resource = Api(ep).app.resource()
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members from buildbot.www.plugin import Application # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot Waterfall View UI")
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members from buildbot.www.plugin import Application from buildbot.schedulers.forcesched import TextParameter class CodeParameter(TextParameter): """A code editor using ace""" spec_attributes = ["mode", "height"] type = "code" mode = "text" height = 200 # create the interface for the setuptools entry point ep = Application(__name__, "Buildbot forcescheduler parameter using ace.js to submit code")
from buildbot.www.plugin import Application # create the interface for the setuptools entry point ep = Application(__name__, 'buildbot macports custom views')