.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
parse (self, str data) | |
Public Member Functions inherited from searx.preferences.EnumStringSetting | |
__init__ (self, str default_value, Iterable[str] choices, locked=False) | |
Public Member Functions inherited from searx.preferences.Setting | |
get_value (self) | |
save (self, str name, flask.Response resp) | |
Public Attributes | |
choices = lang | |
value = data | |
Public Attributes inherited from searx.preferences.EnumStringSetting | |
choices = choices | |
value | |
Public Attributes inherited from searx.preferences.Setting | |
value = default_value | |
locked = locked | |
Protected Member Functions | |
_validate_selection (self, selection) | |
Protected Member Functions inherited from searx.preferences.EnumStringSetting |
Available choices may change, so user's value may not be in choices anymore
Definition at line 165 of file preferences.py.
|
protected |
Reimplemented from searx.preferences.EnumStringSetting.
Definition at line 168 of file preferences.py.
References searx.format.
Referenced by searx.preferences.EnumStringSetting.parse().
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 172 of file preferences.py.
References searx.preferences.BooleanChoices.choices, searx.preferences.EnumStringSetting.choices, searx.preferences.MultipleChoiceSetting.choices, searx.preferences.SearchLanguageSetting.choices, searx.preferences.BooleanSetting.value, searx.preferences.EnumStringSetting.value, searx.preferences.MapSetting.value, searx.preferences.MultipleChoiceSetting.value, searx.preferences.SearchLanguageSetting.value, and searx.preferences.Setting.value.
searx.preferences.SearchLanguageSetting.choices = lang |
Definition at line 179 of file preferences.py.
Referenced by searx.preferences.EnumStringSetting._validate_selection(), searx.preferences.MultipleChoiceSetting._validate_selections(), searx.preferences.BooleanChoices.disabled(), searx.preferences.BooleanChoices.enabled(), searx.preferences.SearchLanguageSetting.parse(), and searx.preferences.BooleanChoices.parse_form().
searx.preferences.SearchLanguageSetting.value = data |
Definition at line 186 of file preferences.py.
Referenced by searx.preferences.Setting.get_value(), searx.preferences.EnumStringSetting.parse(), searx.preferences.MultipleChoiceSetting.parse(), searx.preferences.SearchLanguageSetting.parse(), searx.preferences.Setting.parse(), searx.preferences.MultipleChoiceSetting.save(), and searx.preferences.Setting.save().