moo.sdk.output.get_session_setting
- moo.sdk.output.get_session_setting(key, default=None)
Get a session-specific output setting for the current player.
Session settings are stored per-user and cleared on disconnect. Used by PREFIX, SUFFIX, OUTPUTPREFIX/SUFFIX, and the
a11yverb.Checks the in-process
_session_settingsdict first (authoritative in the SSH server process and in tests), then falls back to the Django cache so Celery workers — which run in a separate process — can also read the value.- Parameters:
key – setting name (‘output_prefix’, ‘output_suffix’, ‘quiet_mode’, ‘color_system’)
default – value to return if setting is not found
- Returns:
setting value or default