Definition at line 34 of file Configurable.py.
◆ __init__()
def python.Configurable.ConfigurableCABehavior.__init__ |
( |
|
self, |
|
|
|
target_state = True |
|
) |
| |
Definition at line 35 of file Configurable.py.
35 def __init__(self, target_state=True):
36 self._target_state = target_state
37 self._previous_state =
None
◆ __enter__()
def python.Configurable.ConfigurableCABehavior.__enter__ |
( |
|
self | ) |
|
Definition at line 38 of file Configurable.py.
39 self._previous_state = Configurable._useGlobalInstances
41 Configurable._useGlobalInstances =
not self._target_state
◆ __exit__()
def python.Configurable.ConfigurableCABehavior.__exit__ |
( |
|
self, |
|
|
|
exception_type, |
|
|
|
exception_value, |
|
|
|
traceback |
|
) |
| |
Definition at line 42 of file Configurable.py.
42 def __exit__(self, exception_type, exception_value, traceback):
43 Configurable._useGlobalInstances = self._previous_state
◆ _previous_state
python.Configurable.ConfigurableCABehavior._previous_state |
|
private |
◆ _target_state
python.Configurable.ConfigurableCABehavior._target_state |
|
private |
The documentation for this class was generated from the following file: