Table of Contents

Module: registries ./src/peak/config/registries.py
Imported modules   
from __future__ import generators
from interfaces import *
from peak.api import *
from peak.util.imports import whenImported
from protocols.advice import getMRO
from types import ClassType
Functions   
FactoryFor
ProviderOf
permuteLookup
permuteReg
  FactoryFor 
FactoryFor ( iface )

Config key for an IComponentFactory that returns iface objects

Usage:

        key = config.FactoryFor(ISomething)

The example is equivalent to:

        key = config.MultiKey(binding.IComponentFactory, ISomething)

  ProviderOf 
ProviderOf ( iface,  *classes )

Configuration key based on interface+class(es)

Usage:

        key = config.ProviderOf(ISomething, Class1, Class2, ...)

The example is equivalent to:

        key = config.MultiKey(ISomething, config.UnionOf(Class1, Class2, ...))

In other words, the returned key is a two-element configuration key that matches the combination of the given interface and any of the given classes.

  permuteLookup 
permuteLookup ( seq,  prev=None )

  permuteReg 
permuteReg ( seq,  prev=None )

Classes   

ClassAsConfigKey

Adapt classes to configuration keys

ImmutableConfig

InterfaceAsConfigKey

Adapt interfaces to configuration keys

MultiKey

UnionOf

Key that matches any of its subkeys

Wrapper


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:04 2024 by HappyDoc version 2.1