Package gnue :: Package navigator :: Package external :: Package zope :: Package interface :: Module adapter :: Class Surrogate
[show private | hide private]

Type Surrogate

object --+
         |
        Surrogate


Specification surrogate

A specification surrogate is used to hold adapter registrations on behalf of a specification.
Method Summary
  __init__(self, spec, registry)
  __repr__(self)
  _adaptTo(self, specification, object, name, with)
  _subscriptionAdaptTo(self, specification, object, with)
  changed(self, which)
  clean(self)
  dirty(self)
  get(self, key)
Get an implied value
  subscribe(self, dependent)
  unsubscribe(self, dependent)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Class Variable Summary
ReadProperty multiImplied = <gnue.navigator.external.zope.interface.a...
ReadProperty selfImplied = <gnue.navigator.external.zope.interface.ad...

Method Details

__init__(self, spec, registry)
(Constructor)

Overrides:
__builtin__.object.__init__

__repr__(self)
(Representation operator)

Overrides:
__builtin__.object.__repr__

_adaptTo(self, specification, object, name='', with=())

_subscriptionAdaptTo(self, specification, object, with=())

changed(self, which=None)

clean(self)

dirty(self)

get(self, key)

Get an implied value

This is only called when the surrogate is dirty

subscribe(self, dependent)

unsubscribe(self, dependent)


Class Variable Details

multiImplied

Type:
ReadProperty
Value:
<gnue.navigator.external.zope.interface.adapter.ReadProperty object at\
 0xb78cc90c>                                                           

selfImplied

Type:
ReadProperty
Value:
<gnue.navigator.external.zope.interface.adapter.ReadProperty object at\
 0xb78cc70c>                                                           


GNUe Home

Private API

Developer's Corner