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

Class Property

source code

util.ComparableMixin --+

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

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

Inherited from util.ComparableMixin: __cmp__, __hash__, __providedBy__

Class Variables
  compare_attrs = ('key', 'default', 'defaultWhenFalse')
  __implemented__ = <implementedBy
Method Details

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

source code 
  • 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.


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__]

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

Overrides: util.ComparableMixin.__provides__

Class Variable Details