<s> """<STR_LIT>""" <EOL> __docformat__ = '<STR_LIT>' <EOL> from zope . interface . interface import Attribute <EOL> from zope . interface . interface import Interface <EOL> from zope . interface . declarations import implementer <EOL> from zope . interface . _compat import _u <EOL> _BLANK = _u ( '<STR_LIT>' ) <EOL> class IElement ( Interface ) : <EOL> """<STR_LIT>""" <EOL> __name__ = Attribute ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> __doc__ = Attribute ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> def getTaggedValue ( tag ) : <EOL> """<STR_LIT>""" <EOL> def queryTaggedValue ( tag , default = None ) : <EOL> """<STR_LIT>""" <EOL> def getTaggedValueTags ( ) : <EOL> """<STR_LIT>""" <EOL> def setTaggedValue ( tag , value ) : <EOL> """<STR_LIT>""" <EOL> class IAttribute ( IElement ) : <EOL> """<STR_LIT>""" <EOL> interface = Attribute ( '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> class IMethod ( IAttribute ) : <EOL> """<STR_LIT>""" <EOL> def getSignatureInfo ( ) : <EOL> """<STR_LIT>""" <EOL> def getSignatureString ( ) : <EOL> """<STR_LIT>""" <EOL> class ISpecification ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def providedBy ( object ) : <EOL> """<STR_LIT>""" <EOL> def implementedBy ( class_ ) : <EOL> """<STR_LIT>""" <EOL> def isOrExtends ( other ) : <EOL> """<STR_LIT>""" <EOL> def extends ( other , strict = True ) : <EOL> """<STR_LIT>""" <EOL> def weakref ( callback = None ) : <EOL> """<STR_LIT>""" <EOL> __bases__ = Attribute ( """<STR_LIT>""" ) <EOL> __sro__ = Attribute ( """<STR_LIT>""" ) <EOL> __iro__ = Attribute ( """<STR_LIT>""" ) <EOL> def get ( name , default = None ) : <EOL> """<STR_LIT>""" <EOL> class IInterface ( ISpecification , IElement ) : <EOL> """<STR_LIT>""" <EOL> def names ( all = False ) : <EOL> """<STR_LIT>""" <EOL> def namesAndDescriptions ( all = False ) : <EOL> """<STR_LIT>""" <EOL> def __getitem__ ( name ) : <EOL> """<STR_LIT>""" <EOL> def direct ( name ) : <EOL> """<STR_LIT>""" <EOL> def validateInvariants ( obj , errors = None ) : <EOL> """<STR_LIT>""" <EOL> def __contains__ ( name ) : <EOL> """<STR_LIT>""" <EOL> def __iter__ ( ) : <EOL> """<STR_LIT>""" <EOL> __module__ = Attribute ( """<STR_LIT>""" ) <EOL> class IDeclaration ( ISpecification ) : <EOL> """<STR_LIT>""" <EOL> def __contains__ ( interface ) : <EOL> """<STR_LIT>""" <EOL> def __iter__ ( ) : <EOL> """<STR_LIT>""" <EOL> def flattened ( ) : <EOL> """<STR_LIT>""" <EOL> def __sub__ ( interfaces ) : <EOL> """<STR_LIT>""" <EOL> def __add__ ( interfaces ) : <EOL> """<STR_LIT>""" <EOL> def __nonzero__ ( ) : <EOL> """<STR_LIT>""" <EOL> class IInterfaceDeclaration ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def providedBy ( ob ) : <EOL> """<STR_LIT>""" <EOL> def implementedBy ( class_ ) : <EOL> """<STR_LIT>""" <EOL> def classImplements ( class_ , * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def implementer ( * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def classImplementsOnly ( class_ , * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def implementer_only ( * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def directlyProvidedBy ( object ) : <EOL> """<STR_LIT>""" <EOL> def directlyProvides ( object , * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def alsoProvides ( object , * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def noLongerProvides ( object , interface ) : <EOL> """<STR_LIT>""" <EOL> def implements ( * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def implementsOnly ( * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def classProvides ( * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def provider ( * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def moduleProvides ( * interfaces ) : <EOL> """<STR_LIT>""" <EOL> def Declaration ( * interfaces ) : <EOL> """<STR_LIT>""" <EOL> class IAdapterRegistry ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def register ( required , provided , name , value ) : <EOL> """<STR_LIT>""" <EOL> def registered ( required , provided , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def lookup ( required , provided , name = '<STR_LIT>' , default = None ) : <EOL> """<STR_LIT>""" <EOL> def queryMultiAdapter ( objects , provided , name = _BLANK , default = None ) : <EOL> """<STR_LIT>""" <EOL> def lookup1 ( required , provided , name = _BLANK , default = None ) : <EOL> """<STR_LIT>""" <EOL> def queryAdapter ( object , provided , name = _BLANK , default = None ) : <EOL> """<STR_LIT>""" <EOL> def adapter_hook ( provided , object , name = _BLANK , default = None ) : <EOL> """<STR_LIT>""" <EOL> def lookupAll ( required , provided ) : <EOL> """<STR_LIT>""" <EOL> def names ( required , provided ) : <EOL> """<STR_LIT>""" <EOL> def subscribe ( required , provided , subscriber , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def subscriptions ( required , provided , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def subscribers ( objects , provided , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> class ComponentLookupError ( LookupError ) : <EOL> """<STR_LIT>""" <EOL> class Invalid ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class IObjectEvent ( Interface ) : <EOL> """<STR_LIT>""" <EOL> object = Attribute ( "<STR_LIT>" ) <EOL> @ implementer ( IObjectEvent ) <EOL> class ObjectEvent ( object ) : <EOL> def __init__ ( self , object ) : <EOL> self . object = object <EOL> class IComponentLookup ( Interface ) : <EOL> """<STR_LIT>""" <EOL> adapters = Attribute ( <EOL> "<STR_LIT>" ) <EOL> utilities = Attribute ( <EOL> "<STR_LIT>" ) <EOL> def queryAdapter ( object , interface , name = _BLANK , default = None ) : <EOL> """<STR_LIT>""" <EOL> def getAdapter ( object , interface , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def queryMultiAdapter ( objects , interface , name = _BLANK , default = None ) : <EOL> """<STR_LIT>""" <EOL> def getMultiAdapter ( objects , interface , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def getAdapters ( objects , provided ) : <EOL> """<STR_LIT>""" <EOL> def subscribers ( objects , provided ) : <EOL> """<STR_LIT>""" <EOL> def handle ( * objects ) : <EOL> """<STR_LIT>""" <EOL> def queryUtility ( interface , name = '<STR_LIT>' , default = None ) : <EOL> """<STR_LIT>""" <EOL> def getUtilitiesFor ( interface ) : <EOL> """<STR_LIT>""" <EOL> def getAllUtilitiesRegisteredFor ( interface ) : <EOL> """<STR_LIT>""" <EOL> class IRegistration ( Interface ) : <EOL> """<STR_LIT>""" <EOL> registry = Attribute ( "<STR_LIT>" ) <EOL> name = Attribute ( "<STR_LIT>" ) <EOL> info = Attribute ( """<STR_LIT>""" ) <EOL> class IUtilityRegistration ( IRegistration ) : <EOL> """<STR_LIT>""" <EOL> factory = Attribute ( "<STR_LIT>" ) <EOL> component = Attribute ( "<STR_LIT>" ) <EOL> provided = Attribute ( "<STR_LIT>" ) <EOL> class _IBaseAdapterRegistration ( IRegistration ) : <EOL> """<STR_LIT>""" <EOL> factory = Attribute ( "<STR_LIT>" ) <EOL> required = Attribute ( """<STR_LIT>""" ) <EOL> provided = Attribute ( """<STR_LIT>""" ) <EOL> class IAdapterRegistration ( _IBaseAdapterRegistration ) : <EOL> """<STR_LIT>""" <EOL> class ISubscriptionAdapterRegistration ( _IBaseAdapterRegistration ) : <EOL> """<STR_LIT>""" <EOL> class IHandlerRegistration ( IRegistration ) : <EOL> handler = Attribute ( "<STR_LIT>" ) <EOL> required = Attribute ( """<STR_LIT>""" ) <EOL> class IRegistrationEvent ( IObjectEvent ) : <EOL> """<STR_LIT>""" <EOL> @ implementer ( IRegistrationEvent ) <EOL> class RegistrationEvent ( ObjectEvent ) : <EOL> """<STR_LIT>""" <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % ( self . __class__ . __name__ , self . object ) <EOL> class IRegistered ( IRegistrationEvent ) : <EOL> """<STR_LIT>""" <EOL> @ implementer ( IRegistered ) <EOL> class Registered ( RegistrationEvent ) : <EOL> pass <EOL> class IUnregistered ( IRegistrationEvent ) : <EOL> """<STR_LIT>""" <EOL> @ implementer ( IUnregistered ) <EOL> class Unregistered ( RegistrationEvent ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class IComponentRegistry ( Interface ) : <EOL> """<STR_LIT>""" <EOL> def registerUtility ( component = None , provided = None , name = _BLANK , <EOL> info = _BLANK , factory = None ) : <EOL> """<STR_LIT>""" <EOL> def unregisterUtility ( component = None , provided = None , name = _BLANK , <EOL> factory = None ) : <EOL> """<STR_LIT>""" <EOL> def registeredUtilities ( ) : <EOL> """<STR_LIT>""" <EOL> def registerAdapter ( factory , required = None , provided = None , name = _BLANK , <EOL> info = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def unregisterAdapter ( factory = None , required = None , <EOL> provided = None , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def registeredAdapters ( ) : <EOL> """<STR_LIT>""" <EOL> def registerSubscriptionAdapter ( factory , required = None , provides = None , <EOL> name = _BLANK , info = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> def unregisterSubscriptionAdapter ( factory = None , required = None , <EOL> provides = None , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def registeredSubscriptionAdapters ( ) : <EOL> """<STR_LIT>""" <EOL> def registerHandler ( handler , required = None , name = _BLANK , info = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> def unregisterHandler ( handler = None , required = None , name = _BLANK ) : <EOL> """<STR_LIT>""" <EOL> def registeredHandlers ( ) : <EOL> """<STR_LIT>""" <EOL> class IComponents ( IComponentLookup , IComponentRegistry ) : <EOL> """<STR_LIT>""" </s>
