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

Class WithProperties

source code

util.ComparableMixin --+
                       |
                      WithProperties

This is a marker class, used fairly widely to indicate that we want to interpolate build properties.

Instance Methods
 
__init__(self, fmtstring, *args, **lambda_subs) source code
 
getRenderingFor(self, build) source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from util.ComparableMixin: __cmp__, __hash__, __providedBy__

Class Variables
  compare_attrs = ('fmtstring', 'args')
  __implemented__ = <implementedBy buildbot.process.properties.W...
Method Details

__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.WithProperties>