Module: api | ./src/protocols/api.py | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Adapter and Declaration API
|
advise
|
| advise ( **kw )
|
adviseObject
|
| adviseObject ( ob, provides=(), doesNotProvide=(), ) Tell an object what it does or doesn't provide
|
declareAdapter
|
| declareAdapter ( factory, provides, forTypes=(), forProtocols=(), forObjects=(), )
|
declareAdapterForObject
|
| declareAdapterForObject ( protocol, adapter, ob, depth=1, ) Declare that
|
declareAdapterForProtocol
|
| declareAdapterForProtocol ( protocol, adapter, proto, depth=1, ) Declare that
|
declareAdapterForType
|
| declareAdapterForType ( protocol, adapter, typ, depth=1, ) Declare that
|
declareImplementation
|
| declareImplementation ( typ, instancesProvide=(), instancesDoNotProvide=(), ) Declare information about a class, type, or |