Table of Contents

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

Path between components

Component Path Syntax

Paths are "/" separated attribute names. Path segments of "." and ".." mean the same as they do in URLs. A leading "/" (or a compound name beginning with an empty path segment), will be treated as an "absolute path" relative to the component's root component.

Paths beginning with anything other than "/", "./", or "../" are acquired, which means that the first path segment will be looked up using acquireComponent() before processing the rest of the path. (See acquireComponent() for more details.) If you do not want a name to be acquired, simply prefix it with ./ so it is relative to the starting object.

All path segments after the first are interpreted as attribute names to be looked up, beginning at the component referenced by the first path segment. '. and ..' are interpreted the same as for the first path segment.

Base Classes   
AbstractName
Methods   
findComponent
  findComponent 
findComponent (
        self,
        component,
        default=NOT_GIVEN,
        )

Exceptions   
exceptions.NameNotFound( resolvedName = ComponentName( resolved ), remainingName = ComponentName([ attr ] + [ a for a in parts ] ), resolvedObj = ob )

Table of Contents

This document was automatically generated on Mon Jan 20 01:11:03 2025 by HappyDoc version 2.1