Imported modules
|
|
from __future__ import generators
from interfaces import *
from peak.api import *
from peak.binding.components import Component, Make, getParentComponent
from peak.binding.interfaces import IAttachable, IRecipe
from peak.naming.interfaces import IState
from peak.util.EigenData import EigenCell, AlreadyRead
from peak.util.FileParsing import AbstractConfigParser
from peak.util.imports import importString, importObject, whenImported
from protocols.advice import getMRO, determineMetaclass
from registries import FactoryFor
|
Functions
|
|
|
|
Value
|
Value ( v )
Return an IRule that always returns v
|
|
_setCellInDict
|
_setCellInDict (
d,
key,
value,
)
|
|
fileNearModule
|
fileNearModule ( moduleName, filename )
|
|
findUtilities
|
findUtilities ( component, iface )
DEPRECATED: Use config.iterValues() instead
|
|
findUtility
|
findUtility (
component,
configKey,
default=NOT_GIVEN,
)
DEPRECATED: use config.lookup() instead
|
|
instancePerComponent
|
instancePerComponent ( factorySpec )
DEPRECATED: use factory mechanisms instead
|
|
iterKeys
|
iterKeys ( component, configKey )
Iterate sub-keys of configKey that are available from component
|
|
iterParents
|
iterParents ( component )
Iterate over all parents of component
|
|
iterValues
|
iterValues ( component, configKey )
Return iterator over all values of'configKey' for component
|
|
lookup
|
lookup (
component,
configKey,
default=NOT_GIVEN,
)
Return value for configKey in context of component , or default
Exceptions
|
|
exceptions.NameNotFound( configKey, resolvedObj = component )
|
|
|
parentProviding
|
parentProviding (
component,
protocol,
default=NOT_GIVEN,
)
Return first parent providing protocol for component , or default
Exceptions
|
|
exceptions.NameNotFound( protocol, resolvedObj = component )
|
|
|
parentsProviding
|
parentsProviding ( component, protocol )
Iterate over all parents of component that adapt to protocol
|
|
provideInstance
|
provideInstance ( factorySpec )
DEPRECATED, use CreateViaFactory(key) instead
|
Classes
|
|
|