Package buildbot :: Package process :: Module properties :: Class Property
[frames] | no frames]

Class Property

source code

util.ComparableMixin --+
                       |
                      Property

An instance of this class renders a property of a build.

Instance Methods
 
__init__(self, key, default=None, defaultWhenFalse=True) source code
 
getRenderingFor(self, props) source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables
  compare_attrs = ('key', 'default', 'defaultWhenFalse')
  __implemented__ = <implementedBy buildbot.process.properties.P...
Method Details

__init__(self, key, default=None, defaultWhenFalse=True)
(Constructor)

source code 
Parameters:
  • key - Property to render.
  • default - Value to use if property isn't set.
  • defaultWhenFalse - When true (default), use default value if property evaluates to False. Otherwise, use default value only when property isn't set.

__provides__(...)

 

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.


Class Variable Details

__implemented__

Value:
<implementedBy buildbot.process.properties.Property>