mirror of
https://github.com/searxng/searxng.git
synced 2025-12-28 14:40:02 +00:00
[enh][fix] update to latest dependencies ++ fix tests & travis test runner
WARNING: dependency changes
This commit is contained in:
@@ -26,8 +26,8 @@ from searx.plugins import (https_rewrite,
|
||||
tracker_url_remover,
|
||||
vim_hotkeys)
|
||||
|
||||
required_attrs = (('name', str),
|
||||
('description', str),
|
||||
required_attrs = (('name', (str, unicode)),
|
||||
('description', (str, unicode)),
|
||||
('default_on', bool))
|
||||
|
||||
optional_attrs = (('js_dependencies', tuple),
|
||||
|
||||
@@ -21,7 +21,7 @@ from lxml import etree
|
||||
from os import listdir, environ
|
||||
from os.path import isfile, isdir, join
|
||||
from searx.plugins import logger
|
||||
from flask.ext.babel import gettext
|
||||
from flask_babel import gettext
|
||||
from searx import searx_dir
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
||||
|
||||
(C) 2016 by Adam Tauber, <asciimoo@gmail.com>
|
||||
'''
|
||||
from flask.ext.babel import gettext
|
||||
from flask_babel import gettext
|
||||
name = gettext('Open result links on new browser tabs')
|
||||
description = gettext('Results are opened in the same window by default. '
|
||||
'This plugin overwrites the default behaviour to open links on new tabs/windows. '
|
||||
|
||||
@@ -14,7 +14,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
||||
|
||||
(C) 2015 by Adam Tauber, <asciimoo@gmail.com>
|
||||
'''
|
||||
from flask.ext.babel import gettext
|
||||
from flask_babel import gettext
|
||||
name = gettext('Search on category select')
|
||||
description = gettext('Perform search immediately if a category selected. '
|
||||
'Disable to select multiple categories. (JavaScript required)')
|
||||
|
||||
@@ -14,7 +14,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
||||
|
||||
(C) 2015 by Adam Tauber, <asciimoo@gmail.com>
|
||||
'''
|
||||
from flask.ext.babel import gettext
|
||||
from flask_babel import gettext
|
||||
import re
|
||||
name = "Self Informations"
|
||||
description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')
|
||||
|
||||
@@ -15,7 +15,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
||||
(C) 2015 by Adam Tauber, <asciimoo@gmail.com>
|
||||
'''
|
||||
|
||||
from flask.ext.babel import gettext
|
||||
from flask_babel import gettext
|
||||
import re
|
||||
from urlparse import urlunparse
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from flask.ext.babel import gettext
|
||||
from flask_babel import gettext
|
||||
|
||||
name = gettext('Vim-like hotkeys')
|
||||
description = gettext('Navigate search results with Vim-like hotkeys '
|
||||
|
||||
Reference in New Issue
Block a user