Package buildbot :: Package status :: Package web :: Module changes :: Class ChangeBox
[frames] | no frames]

Class ChangeBox

source code

twisted.python.components.Adapter --+
                                    |
                                   ChangeBox

Instance Methods
 
getBox(self, req) source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from twisted.python.components.Adapter: __conform__, __init__, __providedBy__, isuper

Class Variables
  __implemented__ = <implementedBy buildbot.status.web.changes.C...

Inherited from twisted.python.components.Adapter: multiComponent, temporaryAdapter

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: twisted.python.components.Adapter.__provides__

Class Variable Details

__implemented__

Value:
<implementedBy buildbot.status.web.changes.ChangeBox>