Package zope :: Package interface :: Module adapter :: Class AdapterLookup
[show private | hide private]
[frames | no frames]

Type AdapterLookup

object --+

Method Summary
  __init__(self, registry, surrogates, _remove)
  adapter_hook(self, interface, object, name, default)
Hook function used when calling interfaces.
  get(self, declaration)
  lookup(self, required, provided, name, default)
  lookup1(self, required, provided, name, default)
  queryAdapter(self, object, interface, name, default)
  queryMultiAdapter(self, objects, interface, name, default)
  subscribers(self, objects, interface)
  subscriptions(self, required, provided)
    Inherited from object
x.__delattr__('name') <==> del
x.__getattribute__('name') <==>
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__('name', value) <==> = value
x.__str__() <==> str(x)

Method Details

adapter_hook(self, interface, object, name='', default=None)

Hook function used when calling interfaces.

When called from Interface.__adapt__, only the interface and object parameters will be passed.

If the factory produces `None`, then the default is returned. This allows us to prevent adaptation (if desired) and make the factory decide whether an adapter will be available.

Generated by Epydoc 2.1 on Fri Jun 24 12:01:24 2005