.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.settings_defaults.SettingsBytesValue Class Reference
+ Inheritance diagram for searx.settings_defaults.SettingsBytesValue:
+ Collaboration diagram for searx.settings_defaults.SettingsBytesValue:

Public Member Functions

typing.Any __call__ (self, typing.Any value)
 
- Public Member Functions inherited from searx.settings_defaults.SettingsValue
 __init__ (self, typing.Union[None, typing.Any, typing.Tuple[typing.Any]] type_definition=None, typing.Any default=None, str environ_name=None)
 
 type_definition_repr (self)
 
None check_type_definition (self, typing.Any value)
 

Additional Inherited Members

- Public Attributes inherited from searx.settings_defaults.SettingsValue
 type_definition
 
 default
 
 environ_name
 
 type_definition_repr
 

Detailed Description

str are base64 decoded

Definition at line 110 of file settings_defaults.py.

Member Function Documentation

◆ __call__()

typing.Any searx.settings_defaults.SettingsBytesValue.__call__ ( self,
typing.Any value )

Reimplemented from searx.settings_defaults.SettingsValue.

Definition at line 113 of file settings_defaults.py.

113 def __call__(self, value: typing.Any) -> typing.Any:
114 if isinstance(value, str):
115 value = b64decode(value)
116 return super().__call__(value)
117
118

References searx.settings_defaults.SettingsBytesValue.__call__().

Referenced by searx.settings_defaults.SettingsBytesValue.__call__().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: