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__, __providedBy__

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.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]
  ['IFooFactory']

  >>> [i.getName() for i in C().__provides__]
  ['IFoo']

Overrides: util.ComparableMixin.__provides__

Class Variable Details

__implemented__

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