Table of Contents

Class: IDOMletState ./src/peak/web/interfaces.py

A component representing a DOMlet's current execution state

Base Classes   
IComponent
Methods   
__getitem__
findState
withData
wrapContext
write
  __getitem__ 
__getitem__ ( key )

Return variable named key, or raise KeyError

  findState 
findState ( interface )

Return the nearest object supporting interface, or None

If the state supports the interface, the state is returned, otherwise the state's parent components are searched and the first parent supporting the interface is returned. None is returned if no parent supports the requested interface.

  withData 
withData ( **data )

Return a new child state, with data added to its variables

  wrapContext 
wrapContext ( ctx )

Wrap ctx in a decorator that adds this state's variables

  write 
write ( unicodeData )

Call this to write data to the output stream


Table of Contents

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