Class: IEvent
This interface is for the basic event type. It is really meant as an indicator that the derived event classes are actually events.
Methods
deferred (self)
Return a defered class corresponding to the interface.
direct (self, name)
extends (self, interface, strict=True)
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)) 1 >>> 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 (self, name, default=None)
Query for an attribute description
getBases (self)
getDescriptionFor (self, name)
Return the attribute description for the given name.
getDoc (self)
Returns the documentation for the object.
getName (self)
Returns the name of the object.
getTaggedValue (self, tag)
Returns the value associated with 'tag'.
getTaggedValueTags (self)
Returns a list of all tags.
interfaces (self)
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)
Same interface or extends?
names (self, all=False)
Return the attribute names defined by the interface.
namesAndDescriptions (self, all=False)
Return attribute names and descriptions defined by interface.
queryDescriptionFor (self, name, default=None)
queryTaggedValue (self, tag, default=None)
Returns the value associated with 'tag'.
setTaggedValue (self, tag, value)
Associates 'value' with 'key'.
subscribe (self, dependent)
unsubscribe (self, dependent)
validateInvariants (self, obj, errors=None)
validate object to defined invariants.
weakref (self, callback=None)
Attributes
dependents
Value of dependents
<WeakKeyDictionary at 170882060>
implementedBy
Value of implementedBy
<built-in method implementedBy of InterfaceClass object at 0xa2f73ec>
isOrExtends
Value of isOrExtends
<built-in method isOrExtends of InterfaceClass object at 0xa2f73ec>
providedBy
Value of providedBy
<built-in method providedBy of InterfaceClass object at 0xa2f73ec>