.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
normalized_str (self, val) | |
parse (self, str data) | |
save (self, str name, flask.Response resp) | |
Public Member Functions inherited from searx.preferences.Setting | |
__init__ (self, default_value, bool locked=False) | |
get_value (self) | |
Public Attributes | |
value = MAP_STR2BOOL[data] | |
key = self.normalized_str(self.value) | |
Public Attributes inherited from searx.preferences.Setting | |
value = default_value | |
locked = locked | |
Setting of a boolean value that has to be translated in order to be storable
Definition at line 213 of file preferences.py.
searx.preferences.BooleanSetting.normalized_str | ( | self, | |
val ) |
Definition at line 216 of file preferences.py.
searx.preferences.BooleanSetting.parse | ( | self, | |
str | data ) |
Parse and validate ``data`` and store the result at ``self.value``
Reimplemented from searx.preferences.Setting.
Definition at line 222 of file preferences.py.
searx.preferences.BooleanSetting.save | ( | self, | |
str | name, | ||
flask.Response | resp ) |
Save cookie ``name`` in the HTTP response object
Reimplemented from searx.preferences.Setting.
Definition at line 227 of file preferences.py.
References searx.preferences.BooleanSetting.key, and searx.preferences.MapSetting.key.
searx.preferences.BooleanSetting.key = self.normalized_str(self.value) |
Definition at line 225 of file preferences.py.
Referenced by searx.preferences.BooleanSetting.save(), and searx.preferences.MapSetting.save().
searx.preferences.BooleanSetting.value = MAP_STR2BOOL[data] |
Definition at line 224 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().