1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-07 22:00:12 +01:00
searxng/utils/templates/etc
Markus Heiser 3e50e8de3e [mod] drop usage of the searx.brand namespace (python procs)
Added function searx.get_setting(name, default=_unset):
  Returns the value to which ``name`` point.  If there is no such name in the
  settings and the ``default`` is unset, a KeyError exception is raised.

In all the python processes ..

- make docs
- make buildenv
- make install (setup.py)

the usage of the 'brand.*' name space is replaced by 'searx.get_setting'
function.

- brand.SEARX_URL        --> get_setting('server.base_url')
- brand.GIT_URL          --> get_setting('brand.git_url')
- brand.GIT_BRANCH'      --> get_setting('server.base_url')
- brand.ISSUE_URL        --> get_setting('brand.issue_url')
- brand.DOCS_URL         --> get_setting('brand.docs_url')
- brand.PUBLIC_INSTANCES --> get_setting('brand.public_instances')
- brand.CONTACT_URL      --> get_setting('general.contact_url', '')
- brand.WIKI_URL         --> get_setting('brand.wiki_url')
- brand.TWITTER_URL      --> get_setting('brand.twitter_url', '')

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-18 15:55:42 +02:00
..
filtron [fix] indentation of filtron's rules (json) 2020-06-18 18:31:46 +02:00
httpd/sites-available Changes from the installation tests on (all) LXC containers. 2020-04-08 18:38:36 +02:00
nginx/default.apps-available Use $host in nginx morty.conf template 2021-03-04 11:16:27 +01:00
searx [mod] drop usage of the searx.brand namespace (python procs) 2021-07-18 15:55:42 +02:00
uwsgi [enh] add searx.shared 2021-01-12 11:47:17 +01:00
apache2 apache: normalize installation (docs and script)s over all distros 2020-04-07 18:31:51 +02:00