Module reahl.component.context

The Reahl context utilities.

ExecutionContext

class reahl.component.context.ExecutionContext

Most code execute “in the scope of” some ExecutionContext. Such code can obtain the current ExecutionContext by calling ExecutionContext.get_context. The ExecutionContext of code comprises of: the current Configuration for all components, the current UserSession, and a SystemControl.

config
session
system_control
classmethod get_context_id()

Returns a unique, hashable identifier identifying the current call context.

classmethod get_context()

Returns the current call context, or NoContext if there is none.

interface_locale

Returns a string identifying the current locale.

Table Of Contents

Previous topic

Module reahl.component.config

Next topic

Module reahl.component.i18n