| Home | Trees | Index | Help |
|---|
object --+
|
SpecificationBasePy --+
|
Specification --+
|
Declaration
ClassProvides,
Implements| Method Summary | |
|---|---|
__init__(self,
*interfaces)
| |
Add two specifications or a specification and an interface | |
Test whether an interface is in the specification | |
Return an iterator for the interfaces in the specification | |
Test whether there are any interfaces in a specification. | |
Add two specifications or a specification and an interface | |
Remove interfaces from a specification | |
We, or something we depend on, have changed | |
Return an iterator of all included and extended interfaces | |
| Inherited from Specification | |
Does the specification extend the given interface? | |
Query for an attribute description | |
Return an iterator for the interfaces in the specification | |
| |
| |
Is the interface the same as or extend the given interface | |
Is the interface implemented by an object | |
| |
| |
| |
| Inherited from SpecificationBasePy | |
Test whether the specification is implemented by a class or factory. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... | |
| Property Summary | |
|---|---|
| Inherited from Specification | |
__bases__ | |
| Class Variable Summary | |
|---|---|
| Inherited from Specification | |
Implements |
__implemented__ = <implementedBy gnue.navigator.external...
|
ClassProvides |
__provides__ = <gnue.navigator.external.zope.interface.d...
|
| Inherited from SpecificationBasePy | |
ClassProvides |
__providedBy__ = <gnue.navigator.external.zope.interface...
|
| Method Details |
|---|
__init__(self,
*interfaces)
|
__add__(self,
other)
|
__contains__(self,
interface)
|
__iter__(self)
|
__nonzero__(self)
|
__radd__(self,
other)
|
__sub__(self,
other)
|
changed(self)We, or something we depend on, have changed
|
flattened(self)Return an iterator of all included and extended interfaces for example: >>> from gnue.navigator.external.zope.interface import Interface >>> class I1(Interface): pass ... >>> class I2(I1): pass ... >>> class I3(Interface): pass ... >>> class I4(I3): pass ... >>> spec = Declaration(I2, I3) >>> spec = Declaration(I4, spec) >>> i = spec.flattened() >>> i.next().getName() 'I4' >>> i.next().getName() 'I2' >>> i.next().getName() 'I1' >>> i.next().getName() 'I3' >>> i.next().getName() 'Interface' >>> list(i) [] |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sun Nov 30 23:03:54 2008 | http://epydoc.sf.net |