.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, *args, **kwargs) | |
get_value (self) | |
parse (self, str data) | |
parse_form (self, str data) | |
save (self, str name, flask.Response resp) | |
Public Member Functions inherited from searx.preferences.Setting |
Public Attributes | |
values = set() | |
locked | |
Public Attributes inherited from searx.preferences.Setting | |
value = default_value | |
locked = locked | |
Setting of values of type ``set`` (comma separated string)
Definition at line 132 of file preferences.py.
searx.preferences.SetSetting.__init__ | ( | self, | |
* | args, | ||
** | kwargs ) |
Reimplemented from searx.preferences.Setting.
Definition at line 135 of file preferences.py.
References searx.preferences.SetSetting.__init__().
Referenced by searx.preferences.SetSetting.__init__().
searx.preferences.SetSetting.get_value | ( | self | ) |
Returns a string with comma separated values.
Reimplemented from searx.preferences.Setting.
Definition at line 139 of file preferences.py.
References searx.preferences.SetSetting.values.
searx.preferences.SetSetting.parse | ( | self, | |
str | data ) |
Parse and validate ``data`` and store the result at ``self.value``
Reimplemented from searx.preferences.Setting.
Definition at line 143 of file preferences.py.
References searx.preferences.SetSetting.values.
searx.preferences.SetSetting.parse_form | ( | self, | |
str | data ) |
Definition at line 153 of file preferences.py.
searx.preferences.SetSetting.save | ( | self, | |
str | name, | ||
flask.Response | resp ) |
Save cookie ``name`` in the HTTP response object
Reimplemented from searx.preferences.Setting.
Definition at line 160 of file preferences.py.
References searx.preferences.SetSetting.values.
searx.preferences.SetSetting.locked |
Definition at line 154 of file preferences.py.
Referenced by searx.preferences.BooleanChoices.parse_form().
searx.preferences.SetSetting.values = set() |
Definition at line 137 of file preferences.py.
Referenced by searx.preferences.SetSetting.get_value(), searx.preferences.SetSetting.parse(), and searx.preferences.SetSetting.save().