| OLD | NEW |
| 1 # This file is part of Buildbot. Buildbot is free software: you can | 1 # This file is part of Buildbot. Buildbot is free software: you can |
| 2 # redistribute it and/or modify it under the terms of the GNU General Public | 2 # redistribute it and/or modify it under the terms of the GNU General Public |
| 3 # License as published by the Free Software Foundation, version 2. | 3 # License as published by the Free Software Foundation, version 2. |
| 4 # | 4 # |
| 5 # This program is distributed in the hope that it will be useful, but WITHOUT | 5 # This program is distributed in the hope that it will be useful, but WITHOUT |
| 6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | 6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | 7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 8 # details. | 8 # details. |
| 9 # | 9 # |
| 10 # You should have received a copy of the GNU General Public License along with | 10 # You should have received a copy of the GNU General Public License along with |
| 11 # this program; if not, write to the Free Software Foundation, Inc., 51 | 11 # this program; if not, write to the Free Software Foundation, Inc., 51 |
| 12 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 12 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 13 # | 13 # |
| 14 # Copyright Buildbot Team Members | 14 # Copyright Buildbot Team Members |
| 15 | 15 |
| 16 from buildbot.util import safeTranslate | 16 from buildbot.util import safeTranslate |
| 17 | 17 |
| 18 | 18 |
| 19 class MasterConfig(object): | 19 class MasterConfig(object): |
| 20 """ | 20 """ |
| 21 Namespace for master configuration values. An instance of this class is | 21 Namespace for master configuration values. An instance of this class is |
| 22 available at C{master.config}. | 22 available at C{master.config}. |
| 23 | 23 |
| 24 @ivar changeHorizon: the current change horizon | 24 @ivar changeHorizon: the current change horizon |
| 25 @ivar validation: regexes for preventing invalid inputs |
| 25 """ | 26 """ |
| 26 | 27 |
| 27 changeHorizon = None | 28 changeHorizon = None |
| 28 | 29 |
| 29 class BuilderConfig: | 30 class BuilderConfig: |
| 30 """ | 31 """ |
| 31 | 32 |
| 32 Used in config files to specify a builder - this can be subclassed by users | 33 Used in config files to specify a builder - this can be subclassed by users |
| 33 to add extra config args, set defaults, or whatever. It is converted to a | 34 to add extra config args, set defaults, or whatever. It is converted to a |
| 34 dictionary for consumption by the buildmaster at config time. | 35 dictionary for consumption by the buildmaster at config time. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 rv['nextSlaveAndBuild'] = self.nextSlaveAndBuild | 121 rv['nextSlaveAndBuild'] = self.nextSlaveAndBuild |
| 121 if self.locks: | 122 if self.locks: |
| 122 rv['locks'] = self.locks | 123 rv['locks'] = self.locks |
| 123 if self.env: | 124 if self.env: |
| 124 rv['env'] = self.env | 125 rv['env'] = self.env |
| 125 if self.properties: | 126 if self.properties: |
| 126 rv['properties'] = self.properties | 127 rv['properties'] = self.properties |
| 127 if self.mergeRequests: | 128 if self.mergeRequests: |
| 128 rv['mergeRequests'] = self.mergeRequests | 129 rv['mergeRequests'] = self.mergeRequests |
| 129 return rv | 130 return rv |
| OLD | NEW |