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
_getConfigData
fromZConfig
getComponentName
getParentComponent
notifyUponAssembly
registerProvider
setParentComponent
uponAssembly
  __attrsToBeAssembled__ 
__attrsToBeAssembled__ (
        klass,
        d,
        a,
        )

  __class_offers__ 
__class_offers__ (
        klass,
        d,
        a,
        )

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

Exceptions   
TypeError("%s constructor has no keyword argument %s" %( klass, k ) )
  __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.

  _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 )

  registerProvider 
registerProvider (
        self,
        configKey,
        provider,
        )

  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 Tue Feb 17 19:55:38 2004 by HappyDoc version 2.1