| |
- Interface
-
- IBoundary
- IBoundaryError
- ICloneProperties
- IDataTypeDeclaration
- IFriendlyName
- IName
-
- ICallable
- ICallableArgument
- IProperty
- IPropertyDefaultHolder
- IPropertyDefaults
- IPropertyMethodStore
- IPropertyPickle
- IPropertyReadOnly
- IPyDocumented
- IPyName
- ITypeBaseType
- ITypeCheck
- ITypeCoercion
- ITypeFactories
- ITypeProperties
class IBoundary(Interface) |
|
A boundary object for checking a value |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IBoundary'
- __iro__ = (<InterfaceClass basictypes.interfaces.IBoundary at 19973f0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27318912>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749250>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'__call__': <zope.interface.interface.Method object at 0x01997490>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'A boundary object for checking a value', '__identifier__': 'basictypes.interfaces.IBoundary', '__iro__': (<InterfaceClass basictypes.interfaces.IBoundary at 19973f0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IBoundary', '_implied': {<InterfaceClass basictypes.interfaces.IBoundary at 19973f0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IBoundary at 19973f0>', ...}
- __getattribute__ = <method-wrapper object at 0x027491B0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x027491B0>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x019973F0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749250>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749250>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11BD0; to 'InterfaceClass' at 019973F0 (IBoundary)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x019973F0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x019973F0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x019973F0>
- Test whether a specification is or extends another
|
class IBoundaryError(Interface) |
|
Provides rich information about a boundary error |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IBoundaryError'
- __iro__ = (<InterfaceClass basictypes.interfaces.IBoundaryError at 19975b0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27318952>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749B30>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'__init__': <zope.interface.interface.Method object at 0x019975F0>, 'boundary': <zope.interface.interface.Attribute object at 0x01997510>, 'client': <zope.interface.interface.Attribute object at 0x01997550>, 'message': <zope.interface.interface.Attribute object at 0x019975D0>, 'property': <zope.interface.interface.Attribute object at 0x019974D0>, 'value': <zope.interface.interface.Attribute object at 0x019974B0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Provides rich information about a boundary error', '__identifier__': 'basictypes.interfaces.IBoundaryError', '__iro__': (<InterfaceClass basictypes.interfaces.IBoundaryError at 19975b0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IBoundaryError', '_implied': {<InterfaceClass basictypes.interfaces.IBoundaryError at 19975b0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IBoundaryError at 19975b0>', ...}
- __getattribute__ = <method-wrapper object at 0x02749B30>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749B30>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x019975B0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749B30>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749B30>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11C30; to 'InterfaceClass' at 019975B0 (IBoundaryError)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x019975B0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x019975B0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x019975B0>
- Test whether a specification is or extends another
|
class ICallable(IName) |
|
Describes and provides access to a callable object |
|
- Method resolution order:
- ICallable
- IName
- Interface
Data and other attributes defined here:
- __bases__ = (<InterfaceClass basictypes.interfaces.IName at 1969fd0>,)
- __identifier__ = 'basictypes.interfaces.ICallable'
- __iro__ = (<InterfaceClass basictypes.interfaces.ICallable at 1997290>, <InterfaceClass basictypes.interfaces.IName at 1969fd0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27318872>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749B30>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'__call__': <zope.interface.interface.Method object at 0x01997430>, '__init__': <zope.interface.interface.Method object at 0x01997350>, 'arguments': <zope.interface.interface.Attribute object at 0x01997250>, 'coerce': <zope.interface.interface.Attribute object at 0x019972B0>, 'getArgument': <zope.interface.interface.Method object at 0x01997330>, 'longHelp': <zope.interface.interface.Attribute object at 0x01997230>, 'name': <zope.interface.interface.Attribute object at 0x01997270>, 'shortHelp': <zope.interface.interface.Attribute object at 0x019971F0>}, '__bases__': (<InterfaceClass basictypes.interfaces.IName at 1969fd0>,), '__doc__': 'Describes and provides access to a callable object', '__identifier__': 'basictypes.interfaces.ICallable', '__iro__': (<InterfaceClass basictypes.interfaces.ICallable at 1997290>, <InterfaceClass basictypes.interfaces.IName at 1969fd0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'ICallable', '_implied': {<InterfaceClass basictypes.interfaces.ICallable at 1997290>: (), <InterfaceClass basictypes.interfaces.IName at 1969fd0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.ICallable at 1997290>', ...}
- __getattribute__ = <method-wrapper object at 0x02749B30>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749B30>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01997290>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749B30>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749B30>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11B70; to 'InterfaceClass' at 01997290 (ICallable)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01997290>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01997290>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01997290>
- Test whether a specification is or extends another
|
class ICallableArgument(IName) |
|
Describes an argument to a callable object
Note that ITypeBaseType may be provided by particular
subclasses to allow for type checking. |
|
- Method resolution order:
- ICallableArgument
- IName
- Interface
Data and other attributes defined here:
- __bases__ = (<InterfaceClass basictypes.interfaces.IName at 1969fd0>,)
- __identifier__ = 'basictypes.interfaces.ICallableArgument'
- __iro__ = (<InterfaceClass basictypes.interfaces.ICallableArgument at 1997190>, <InterfaceClass basictypes.interfaces.IName at 1969fd0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27318792>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749250>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'__eq__': <zope.interface.interface.Method object at 0x019971D0>, 'default': <zope.interface.interface.Attribute object at 0x01997210>}, '__bases__': (<InterfaceClass basictypes.interfaces.IName at 1969fd0>,), '__doc__': 'Describes an argument to a callable object\n\n\tNot...ticular\n\tsubclasses to allow for type checking.\n\t', '__identifier__': 'basictypes.interfaces.ICallableArgument', '__iro__': (<InterfaceClass basictypes.interfaces.ICallableArgument at 1997190>, <InterfaceClass basictypes.interfaces.IName at 1969fd0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'ICallableArgument', '_implied': {<InterfaceClass basictypes.interfaces.ICallableArgument at 1997190>: (), <InterfaceClass basictypes.interfaces.IName at 1969fd0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.ICallableArgument at 1997190>', ...}
- __getattribute__ = <method-wrapper object at 0x02749250>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749250>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01997190>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749250>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749250>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11B10; to 'InterfaceClass' at 01997190 (ICallableArgument)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01997190>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01997190>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01997190>
- Test whether a specification is or extends another
|
class ICloneProperties(Interface) |
|
Live-object duplication mechanism with property substitution |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.ICloneProperties'
- __iro__ = (<InterfaceClass basictypes.interfaces.ICloneProperties at 1976d10>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26608224>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749C50>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'clone': <zope.interface.interface.Method object at 0x019769D0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Live-object duplication mechanism with property substitution', '__identifier__': 'basictypes.interfaces.ICloneProperties', '__iro__': (<InterfaceClass basictypes.interfaces.ICloneProperties at 1976d10>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'ICloneProperties', '_implied': {<InterfaceClass basictypes.interfaces.ICloneProperties at 1976d10>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.ICloneProperties at 1976d10>', ...}
- __getattribute__ = <method-wrapper object at 0x02749C50>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749C50>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01976D10>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749C50>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749C50>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11870; to 'InterfaceClass' at 01976D10 (ICloneProperties)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01976D10>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01976D10>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01976D10>
- Test whether a specification is or extends another
|
class IDataTypeDeclaration(Interface) |
|
Object provides a dataType compatible with wxoo |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IDataTypeDeclaration'
- __iro__ = (<InterfaceClass basictypes.interfaces.IDataTypeDeclaration at 196d1f0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26740056>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749DD0>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'dataType': <zope.interface.interface.Attribute object at 0x0196D110>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Object provides a dataType compatible with wxoo', '__identifier__': 'basictypes.interfaces.IDataTypeDeclaration', '__iro__': (<InterfaceClass basictypes.interfaces.IDataTypeDeclaration at 196d1f0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IDataTypeDeclaration', '_implied': {<InterfaceClass basictypes.interfaces.IDataTypeDeclaration at 196d1f0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IDataTypeDeclaration at 196d1f0>', ...}
- __getattribute__ = <method-wrapper object at 0x02749DD0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749DD0>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x0196D1F0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749DD0>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749DD0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A119F0; to 'InterfaceClass' at 0196D1F0 (IDataTypeDeclaration)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x0196D1F0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x0196D1F0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x0196D1F0>
- Test whether a specification is or extends another
|
class IFriendlyName(Interface) |
|
Provide a friendly name for an object |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IFriendlyName'
- __iro__ = (<InterfaceClass basictypes.interfaces.IFriendlyName at 1969fb0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26669264>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749DD0>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'friendlyName': <zope.interface.interface.Attribute object at 0x01969B30>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Provide a friendly name for an object', '__identifier__': 'basictypes.interfaces.IFriendlyName', '__iro__': (<InterfaceClass basictypes.interfaces.IFriendlyName at 1969fb0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IFriendlyName', '_implied': {<InterfaceClass basictypes.interfaces.IFriendlyName at 1969fb0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IFriendlyName at 1969fb0>', ...}
- __getattribute__ = <method-wrapper object at 0x02749DD0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749DD0>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01969FB0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749DD0>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749DD0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11750; to 'InterfaceClass' at 01969FB0 (IFriendlyName)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01969FB0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01969FB0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01969FB0>
- Test whether a specification is or extends another
|
class IName(Interface) |
|
Provide a generic name for an object |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IName'
- __iro__ = (<InterfaceClass basictypes.interfaces.IName at 1969fd0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26669344>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749D50>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'name': <zope.interface.interface.Attribute object at 0x01969810>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Provide a generic name for an object', '__identifier__': 'basictypes.interfaces.IName', '__iro__': (<InterfaceClass basictypes.interfaces.IName at 1969fd0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IName', '_implied': {<InterfaceClass basictypes.interfaces.IName at 1969fd0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IName at 1969fd0>', ...}
- __getattribute__ = <method-wrapper object at 0x02749D50>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749D50>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01969FD0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749D50>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749D50>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01973C30; to 'InterfaceClass' at 01969FD0 (IName)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01969FD0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01969FD0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01969FD0>
- Test whether a specification is or extends another
|
class IProperty(Interface) |
|
High-level functionality of BasicProperty-like objects |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IProperty'
- __iro__ = (<InterfaceClass basictypes.interfaces.IProperty at 19977d0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27319072>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x027491B0>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'__delete__': <zope.interface.interface.Method object at 0x01997890>, '__get__': <zope.interface.interface.Method object at 0x019978F0>, '__set__': <zope.interface.interface.Method object at 0x01997970>, 'name': <zope.interface.interface.Attribute object at 0x01997810>, 'trueProperty': <zope.interface.interface.Attribute object at 0x019977B0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'High-level functionality of BasicProperty-like objects', '__identifier__': 'basictypes.interfaces.IProperty', '__iro__': (<InterfaceClass basictypes.interfaces.IProperty at 19977d0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IProperty', '_implied': {<InterfaceClass basictypes.interfaces.IProperty at 19977d0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IProperty at 19977d0>', ...}
- __getattribute__ = <method-wrapper object at 0x027491B0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x027491B0>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x019977D0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x027491B0>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x027491B0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11D50; to 'InterfaceClass' at 019977D0 (IProperty)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x019977D0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x019977D0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x019977D0>
- Test whether a specification is or extends another
|
class IPropertyDefaultHolder(Interface) |
|
Callable-object producing a default value for property |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IPropertyDefaultHolder'
- __iro__ = (<InterfaceClass basictypes.interfaces.IPropertyDefaultHolder at 1997770>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27319032>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749630>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'__call__': <zope.interface.interface.Method object at 0x01997750>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Callable-object producing a default value for property', '__identifier__': 'basictypes.interfaces.IPropertyDefaultHolder', '__iro__': (<InterfaceClass basictypes.interfaces.IPropertyDefaultHolder at 1997770>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IPropertyDefaultHolder', '_implied': {<InterfaceClass basictypes.interfaces.IPropertyDefaultHolder at 1997770>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IPropertyDefaultHolder at 1997770>', ...}
- __getattribute__ = <method-wrapper object at 0x02749630>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749630>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01997770>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749630>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749630>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11CF0; to 'InterfaceClass' at 01997770 (IPropertyDefaultHolder)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01997770>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01997770>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01997770>
- Test whether a specification is or extends another
|
class IPropertyDefaults(Interface) |
|
Property interface providing default-value semantics |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IPropertyDefaults'
- __iro__ = (<InterfaceClass basictypes.interfaces.IPropertyDefaults at 1997610>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27318992>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749E30>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'default': <zope.interface.interface.Attribute object at 0x01997670>, 'setDefaultOnGet': <zope.interface.interface.Attribute object at 0x019976B0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Property interface providing default-value semantics', '__identifier__': 'basictypes.interfaces.IPropertyDefaults', '__iro__': (<InterfaceClass basictypes.interfaces.IPropertyDefaults at 1997610>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IPropertyDefaults', '_implied': {<InterfaceClass basictypes.interfaces.IPropertyDefaults at 1997610>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IPropertyDefaults at 1997610>', ...}
- __getattribute__ = <method-wrapper object at 0x02749E30>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749E30>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01997610>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749E30>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749E30>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11C90; to 'InterfaceClass' at 01997610 (IPropertyDefaults)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01997610>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01997610>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01997610>
- Test whether a specification is or extends another
|
class IPropertyMethodStore(Interface) |
|
Objects using client methods for data storage/retrieval |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IPropertyMethodStore'
- __iro__ = (<InterfaceClass basictypes.interfaces.IPropertyMethodStore at 1a14710>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27319152>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x027493B0>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'delMethod': <zope.interface.interface.Attribute object at 0x01A14670>, 'getMethod': <zope.interface.interface.Attribute object at 0x01A146D0>, 'setMethod': <zope.interface.interface.Attribute object at 0x01A146F0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Objects using client methods for data storage/retrieval', '__identifier__': 'basictypes.interfaces.IPropertyMethodStore', '__iro__': (<InterfaceClass basictypes.interfaces.IPropertyMethodStore at 1a14710>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IPropertyMethodStore', '_implied': {<InterfaceClass basictypes.interfaces.IPropertyMethodStore at 1a14710>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IPropertyMethodStore at 1a14710>', ...}
- __getattribute__ = <method-wrapper object at 0x027493B0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x027493B0>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01A14710>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x027493B0>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x027493B0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11E10; to 'InterfaceClass' at 01A14710 (IPropertyMethodStore)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01A14710>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01A14710>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01A14710>
- Test whether a specification is or extends another
|
class IPropertyPickle(Interface) |
|
Provide pickle support to retrieve/set property values |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IPropertyPickle'
- __iro__ = (<InterfaceClass basictypes.interfaces.IPropertyPickle at 1997930>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27319112>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x027493B0>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'getState': <zope.interface.interface.Method object at 0x01A14650>, 'setState': <zope.interface.interface.Method object at 0x01A14690>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Provide pickle support to retrieve/set property values', '__identifier__': 'basictypes.interfaces.IPropertyPickle', '__iro__': (<InterfaceClass basictypes.interfaces.IPropertyPickle at 1997930>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IPropertyPickle', '_implied': {<InterfaceClass basictypes.interfaces.IPropertyPickle at 1997930>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IPropertyPickle at 1997930>', ...}
- __getattribute__ = <method-wrapper object at 0x027493B0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x027493B0>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01997930>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x027493B0>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x027493B0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11DB0; to 'InterfaceClass' at 01997930 (IPropertyPickle)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01997930>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01997930>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01997930>
- Test whether a specification is or extends another
|
class IPropertyReadOnly(Interface) |
|
Read-only flags for Property-like objects |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IPropertyReadOnly'
- __iro__ = (<InterfaceClass basictypes.interfaces.IPropertyReadOnly at 1a147b0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 27319192>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x02749D90>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'readOnly': <zope.interface.interface.Attribute object at 0x01A147F0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Read-only flags for Property-like objects', '__identifier__': 'basictypes.interfaces.IPropertyReadOnly', '__iro__': (<InterfaceClass basictypes.interfaces.IPropertyReadOnly at 1a147b0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IPropertyReadOnly', '_implied': {<InterfaceClass basictypes.interfaces.IPropertyReadOnly at 1a147b0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IPropertyReadOnly at 1a147b0>', ...}
- __getattribute__ = <method-wrapper object at 0x02749D90>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x02749D90>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01A147B0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x02749D90>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x02749D90>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11E70; to 'InterfaceClass' at 01A147B0 (IPropertyReadOnly)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01A147B0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01A147B0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01A147B0>
- Test whether a specification is or extends another
|
class IPyDocumented(Interface) |
| |
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IPyDocumented'
- __iro__ = (<InterfaceClass basictypes.interfaces.IPyDocumented at 1976b50>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26609064>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x027493B0>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'__doc__': <zope.interface.interface.Attribute object at 0x01969B90>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': '', '__identifier__': 'basictypes.interfaces.IPyDocumented', '__iro__': (<InterfaceClass basictypes.interfaces.IPyDocumented at 1976b50>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IPyDocumented', '_implied': {<InterfaceClass basictypes.interfaces.IPyDocumented at 1976b50>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IPyDocumented at 1976b50>', ...}
- __getattribute__ = <method-wrapper object at 0x027493B0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x027493B0>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01976B50>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x027493B0>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x027493B0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11810; to 'InterfaceClass' at 01976B50 (IPyDocumented)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01976B50>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01976B50>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01976B50>
- Test whether a specification is or extends another
|
class IPyName(Interface) |
|
Object providing a generic name as __name__ |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.IPyName'
- __iro__ = (<InterfaceClass basictypes.interfaces.IPyName at 1969ed0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26608144>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x0278D630>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'__name__': <zope.interface.interface.Attribute object at 0x01969BD0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Object providing a generic name as __name__', '__identifier__': 'basictypes.interfaces.IPyName', '__iro__': (<InterfaceClass basictypes.interfaces.IPyName at 1969ed0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'IPyName', '_implied': {<InterfaceClass basictypes.interfaces.IPyName at 1969ed0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.IPyName at 1969ed0>', ...}
- __getattribute__ = <method-wrapper object at 0x0278D7B0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x0278D630>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01969ED0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x0278D850>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x0278D7B0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A117B0; to 'InterfaceClass' at 01969ED0 (IPyName)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01969ED0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01969ED0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01969ED0>
- Test whether a specification is or extends another
|
class ITypeBaseType(Interface) |
|
Objects with base data types for dependent objects |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.ITypeBaseType'
- __iro__ = (<InterfaceClass basictypes.interfaces.ITypeBaseType at 1997050>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26740096>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x0278D790>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'baseType': <zope.interface.interface.Attribute object at 0x019970D0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Objects with base data types for dependent objects', '__identifier__': 'basictypes.interfaces.ITypeBaseType', '__iro__': (<InterfaceClass basictypes.interfaces.ITypeBaseType at 1997050>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'ITypeBaseType', '_implied': {<InterfaceClass basictypes.interfaces.ITypeBaseType at 1997050>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.ITypeBaseType at 1997050>', ...}
- __getattribute__ = <method-wrapper object at 0x0278D9D0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x0278D790>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01997050>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x0278D610>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x0278D9D0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11A50; to 'InterfaceClass' at 01997050 (ITypeBaseType)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01997050>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01997050>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01997050>
- Test whether a specification is or extends another
|
class ITypeCheck(Interface) |
|
Interface checking whether value is proper instance of type |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.ITypeCheck'
- __iro__ = (<InterfaceClass basictypes.interfaces.ITypeCheck at 196dbf0>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26739936>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x0278D550>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'check': <zope.interface.interface.Method object at 0x0196D090>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Interface checking whether value is proper instance of type', '__identifier__': 'basictypes.interfaces.ITypeCheck', '__iro__': (<InterfaceClass basictypes.interfaces.ITypeCheck at 196dbf0>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'ITypeCheck', '_implied': {<InterfaceClass basictypes.interfaces.ITypeCheck at 196dbf0>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.ITypeCheck at 196dbf0>', ...}
- __getattribute__ = <method-wrapper object at 0x0278D690>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x0278D550>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x0196DBF0>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x0278D850>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x0278D690>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11930; to 'InterfaceClass' at 0196DBF0 (ITypeCheck)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x0196DBF0>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x0196DBF0>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x0196DBF0>
- Test whether a specification is or extends another
|
class ITypeCoercion(Interface) |
|
Convert/coerce a value to instance of type |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.ITypeCoercion'
- __iro__ = (<InterfaceClass basictypes.interfaces.ITypeCoercion at 1976a30>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26685392>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x0278D790>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'coerce': <zope.interface.interface.Method object at 0x0196D6D0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Convert/coerce a value to instance of type', '__identifier__': 'basictypes.interfaces.ITypeCoercion', '__iro__': (<InterfaceClass basictypes.interfaces.ITypeCoercion at 1976a30>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'ITypeCoercion', '_implied': {<InterfaceClass basictypes.interfaces.ITypeCoercion at 1976a30>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.ITypeCoercion at 1976a30>', ...}
- __getattribute__ = <method-wrapper object at 0x0278D7B0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x0278D790>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01976A30>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x0278D770>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x0278D7B0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A118D0; to 'InterfaceClass' at 01976A30 (ITypeCoercion)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01976A30>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01976A30>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01976A30>
- Test whether a specification is or extends another
|
class ITypeFactories(Interface) |
|
Interface providing factory instances for a given type |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.ITypeFactories'
- __iro__ = (<InterfaceClass basictypes.interfaces.ITypeFactories at 196d030>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26739976>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x0278D410>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'factories': <zope.interface.interface.Method object at 0x019979F0>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Interface providing factory instances for a given type', '__identifier__': 'basictypes.interfaces.ITypeFactories', '__iro__': (<InterfaceClass basictypes.interfaces.ITypeFactories at 196d030>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'ITypeFactories', '_implied': {<InterfaceClass basictypes.interfaces.ITypeFactories at 196d030>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.ITypeFactories at 196d030>', ...}
- __getattribute__ = <method-wrapper object at 0x0278DA90>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x0278D410>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x0196D030>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x0278D690>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x0278DA90>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11990; to 'InterfaceClass' at 0196D030 (ITypeFactories)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x0196D030>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x0196D030>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x0196D030>
- Test whether a specification is or extends another
|
class ITypeProperties(Interface) |
|
Allows retrieval of property-set for a type |
|
Data and other attributes defined here:
- __bases__ = (<InterfaceClass zope.interface.Interface at 1985cb0>,)
- __identifier__ = 'basictypes.interfaces.ITypeProperties'
- __iro__ = (<InterfaceClass basictypes.interfaces.ITypeProperties at 1997130>, <InterfaceClass zope.interface.Interface at 1985cb0>)
- dependents = <WeakKeyDictionary at 26740136>
Methods inherited from <Interface>:
- __contains__(self, name) from InterfaceClass
- __getitem__ = getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- __gt__(self, other) from InterfaceClass
- __init__(self, name, bases=(), attrs=None, __doc__=None, __module__=None) from InterfaceClass
- __iter__(self) from InterfaceClass
- __lt__(self, other) from InterfaceClass
- __reduce__(self) from InterfaceClass
- __repr__(self) from InterfaceClass
- changed(self) from InterfaceClass
- We, or something we depend on, have changed
- deferred(self) from InterfaceClass
- Return a defered class corresponding to the interface.
- extends(self, interface, strict=True) from InterfaceClass
- Does the specification extend the given interface?
Test whether an interface in the specification extends the
given interface
Examples::
>>> from zope.interface import Interface
>>> from zope.interface.declarations import Declaration
>>> class I1(Interface): pass
...
>>> class I2(I1): pass
...
>>> class I3(Interface): pass
...
>>> class I4(I3): pass
...
>>> spec = Declaration()
>>> int(spec.extends(Interface))
0
>>> spec = Declaration(I2)
>>> int(spec.extends(Interface))
1
>>> int(spec.extends(I1))
1
>>> int(spec.extends(I2))
1
>>> int(spec.extends(I3))
0
>>> int(spec.extends(I4))
0
>>> I2.extends(I2)
0
>>> I2.extends(I2, False)
1
>>> I2.extends(I2, strict=False)
1
- get = queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- getBases(self) from InterfaceClass
- getDescriptionFor(self, name) from InterfaceClass
- Return the attribute description for the given name.
- getDoc(self) from InterfaceClass
- Returns the documentation for the object.
- getName(self) from InterfaceClass
- Returns the name of the object.
- getTaggedValue(self, tag) from InterfaceClass
- Returns the value associated with 'tag'.
- getTaggedValueTags(self) from InterfaceClass
- Returns a list of all tags.
- interfaces(self) from InterfaceClass
- Return an iterator for the interfaces in the specification
for example::
>>> from zope.interface import Interface
>>> class I1(Interface): pass
...
>>>
>>> i = I1.interfaces()
>>> i.next().getName()
'I1'
>>> list(i)
[]
- isEqualOrExtendedBy(self, other) from InterfaceClass
- Same interface or extends?
- names(self, all=False) from InterfaceClass
- Return the attribute names defined by the interface.
- namesAndDescriptions(self, all=False) from InterfaceClass
- Return attribute names and descriptions defined by interface.
- queryDescriptionFor(self, name, default=None) from InterfaceClass
- Return the attribute description for the given name.
- setTaggedValue(self, tag, value) from InterfaceClass
- Associates 'value' with 'key'.
- subscribe(self, dependent) from InterfaceClass
- unsubscribe(self, dependent) from InterfaceClass
- weakref(self, callback=None) from InterfaceClass
Data and other attributes inherited from <Interface>:
- __class__ = <class 'zope.interface.interface.InterfaceClass'>
- Prototype (scarecrow) Interfaces Implementation.
- __delattr__ = <method-wrapper object at 0x0278D130>
- x.__delattr__('name') <==> del x.name
- __dict__ = {'_Element__tagged_values': {}, '_InterfaceClass__attrs': {'getProperties': <zope.interface.interface.Method object at 0x01997150>}, '__bases__': (<InterfaceClass zope.interface.Interface at 1985cb0>,), '__doc__': 'Allows retrieval of property-set for a type', '__identifier__': 'basictypes.interfaces.ITypeProperties', '__iro__': (<InterfaceClass basictypes.interfaces.ITypeProperties at 1997130>, <InterfaceClass zope.interface.Interface at 1985cb0>), '__module__': 'basictypes.interfaces', '__name__': 'ITypeProperties', '_implied': {<InterfaceClass basictypes.interfaces.ITypeProperties at 1997130>: (), <InterfaceClass zope.interface.Interface at 1985cb0>: ()}, '_v_repr': '<InterfaceClass basictypes.interfaces.ITypeProperties at 1997130>', ...}
- __getattribute__ = <method-wrapper object at 0x0278D3D0>
- x.__getattribute__('name') <==> x.name
- __hash__ = <method-wrapper object at 0x0278D130>
- x.__hash__() <==> hash(x)
- __implements__ = <implementedBy zope.interface.interface.InterfaceClass>
- __new__ = <built-in method __new__ of type object at 0x02393110>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
- __providedBy__ = <implementedBy zope.interface.interface.InterfaceClass>
- __provides__ = <implementedBy zope.interface.interface.InterfaceClass>
- __reduce_ex__ = <built-in method __reduce_ex__ of InterfaceClass object at 0x01997130>
- helper for pickle
- __setattr__ = <method-wrapper object at 0x0278D770>
- x.__setattr__('name', value) <==> x.name = value
- __str__ = <method-wrapper object at 0x0278D3D0>
- x.__str__() <==> str(x)
- __weakref__ = <weakref at 01A11AB0; to 'InterfaceClass' at 01997130 (ITypeProperties)>
- isImplementedBy = <built-in method isImplementedBy of InterfaceClass object at 0x01997130>
- Test whether an interface is implemented by the specification
- isImplementedByInstancesOf = <built-in method isImplementedByInstancesOf of InterfaceClass object at 0x01997130>
- Test whether the specification is implemented by instances of a class
- isOrExtends = <built-in method isOrExtends of InterfaceClass object at 0x01997130>
- Test whether a specification is or extends another
| |