Package ldaptor :: Module entryhelpers :: Class DiffTreeMixin
[hide private]
[frames] | no frames]

Class DiffTreeMixin

source code

object --+
         |
        DiffTreeMixin
Known Subclasses:

Instance Methods [hide private]
 
_diffTree_gotMyChildren(self, myChildren, other, result) source code
 
_diffTree_gotBothChildren(self, otherChildren, myChildren, other, result) source code
 
_diffTree_commonChildren(self, children, result) source code
 
_diffTree_addedChildren(self, children, result) source code
 
_diffTree_deletedChildren(self, children, result) source code
 
diffTree(self, other, result=None) source code
 
__providedBy__(...)
Object Specification Descriptor
source code
 
__provides__(...)
Special descriptor for class __provides__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __implemented__ = <implementedBy ldaptor.entryhelpers.DiffTree...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

Class Variable Details [hide private]

__implemented__

Value:
<implementedBy ldaptor.entryhelpers.DiffTreeMixin>