.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
parse (self, str data) | |
![]() | |
__init__ (self, str default_value, Iterable[str] choices, locked=False) | |
![]() | |
__init__ (self, default_value, bool locked=False) | |
get_value (self) | |
save (self, str name, flask.Response resp) | |
Protected Member Functions | |
_validate_selection (self, selection) | |
Additional Inherited Members | |
![]() | |
choices = choices | |
![]() | |
value = default_value | |
locked = locked | |
Available choices may change, so user's value may not be in choices anymore
Definition at line 168 of file preferences.py.
|
protected |
Reimplemented from searx.preferences.EnumStringSetting.
Definition at line 171 of file preferences.py.
searx.preferences.SearchLanguageSetting.parse | ( | self, | |
str | data ) |
Parse and validate ``data`` and store the result at ``self.value``
Reimplemented from searx.preferences.EnumStringSetting.
Definition at line 175 of file preferences.py.
References searx.preferences.EnumStringSetting.choices, and searx.preferences.Setting.value.