Module reahl.component.context¶
ExecutionContext¶
-
class
reahl.component.context.ExecutionContext(name=None, parent_context=None)¶ 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 raises
NoContextFoundif there is none.
-
property
interface_locale¶ Returns a string identifying the current locale.
-
