Table of Contents

Class: Component ./src/peak/binding/components.py

Thing that can be composed into a component tree, w/binding & lookups

Base Classes   
_Base
    object
Methods   
__attrsToBeAssembled__
__class_offers__
__init__
__parentComponent
_configKeysMatching
_config_maps
_getConfigData
fromZConfig
getComponentName
getParentComponent
notifyUponAssembly
setParentComponent
uponAssembly
  __attrsToBeAssembled__ 
__attrsToBeAssembled__ (
        klass,
        d,
        a,
        )

  __class_offers__ 
__class_offers__ (
        klass,
        d,
        a,
        )

  __init__ 
__init__ (
        self,
        parentComponent=NOT_GIVEN,
        componentName=None,
        **kw,
        )

  __parentComponent 
__parentComponent (
        self,
        d,
        a,
        )

  _configKeysMatching 
_configKeysMatching ( self,  configKey )

Iterable over defined keys that match configKey

A key k in the map is considered to "match" configKey if any of k.parentKeys() are listed as keys in configKey.registrationKeys(). You must not change the configuration map while iterating over the keys. Also, keep in mind that only explicitly-registered keys are returned; for instance, load-on-demand rules will only show up as wildcard keys.

  _config_maps 
_config_maps ( self )

  _getConfigData 
_getConfigData (
        self,
        forObj,
        configKey,
        )

  fromZConfig 
fromZConfig ( klass,  section )

Classmethod: Create an instance from a ZConfig section

  getComponentName 
getComponentName ( self )

  getParentComponent 
getParentComponent ( self )

  notifyUponAssembly 
notifyUponAssembly ( self,  child )

  setParentComponent 
setParentComponent (
        self,
        parentComponent,
        componentName=None,
        suggest=False,
        )

Exceptions   
AlreadyRead("Component %r already has parent %r; tried to set %r" %( self, pc, parentComponent ) )
  uponAssembly 
uponAssembly ( self )

Don't override this unless you can handle the reentrancy issues!


Table of Contents

This document was automatically generated on Mon May 6 01:11:02 2024 by HappyDoc version 2.1