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

Class WithProperties

source code

util.ComparableMixin --+

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
Special descriptor for class __provides__

Inherited from util.ComparableMixin: __cmp__, __hash__, __providedBy__

Class Variables
  compare_attrs = ('fmtstring', 'args')
  __implemented__ = <implementedBy
Method Details


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