Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This decorator was suggested by tomprince: #522 (comment) and has been modified, tested, and documented here. This commit also reorganizes some of the properties documentation, splitting that in "Customization" between the "Properties" section and the "Classes" section.
- Loading branch information
Showing
7 changed files
with
137 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. index:: single; Properties; IProperties | ||
|
||
IProperties | ||
=========== | ||
|
||
.. class:: buildbot.interfaces.IProperties:: | ||
|
||
Providers of this interface allow get and set access to a build's properties. | ||
|
||
.. method:: getProperty(propname, default=None) | ||
|
||
Get a named property, returning the default value if the property is not found. | ||
|
||
.. method:: hasProperty(propname) | ||
|
||
Determine whether the named property exists. | ||
|
||
.. method:: setProperty(propname, value, source) | ||
|
||
Set a property's value, also specifying the source for this value. | ||
|
||
.. method:: getProperties() | ||
|
||
Get a :class:`buildbot.process.properties.Properties` instance. The | ||
interface of this class is not finalized; where possible, use the other | ||
``IProperties`` methods. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. index:: single; Properties; IRenderable | ||
|
||
IRenderable | ||
=========== | ||
|
||
.. class:: buildbot.interfaces.IRenderable:: | ||
|
||
Providers of this class can be "rendered", based on available properties, when a build is started. | ||
|
||
.. method:: getRenderingFor(iprops) | ||
|
||
:param iprops: the :class:`~buildbot.interfaces.IProperties` provider supplying the properties of the build. | ||
|
||
Reeturns the interpretation of the given properties, optionally in a Deferred. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters