Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
elasticsearch
Commits
e007bef1f883
Commit
87cd2d32
authored
Nov 23, 2021
by
Katia Saurfelt
Browse files
chore: drop six dependency
parent
df6b00b60de3
Changes
2
Hide whitespace changes
Inline
Side-by-side
cubicweb_elasticsearch/__pkginfo__.py
View file @
e007bef1
...
...
@@ -15,7 +15,6 @@ web = "https://forge.extranet.logilab.fr/cubicweb/cubes/%s" % distname
__depends__
=
{
"cubicweb"
:
">= 3.28.0, < 3.34.0"
,
"six"
:
">= 1.4.0"
,
"cwtags"
:
None
,
"elasticsearch"
:
">=7.0.0,<8.0.0"
,
"elasticsearch-dsl"
:
">=7.0.0,<8.0.0"
,
...
...
cubicweb_elasticsearch/views.py
View file @
e007bef1
...
...
@@ -16,8 +16,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""elasticsearch search views"""
from
six
import
text_type
as
unicode
from
elasticsearch.exceptions
import
NotFoundError
from
elasticsearch_dsl
import
FacetedSearch
,
TermsFacet
,
DateHistogramFacet
from
bs4
import
BeautifulSoup
...
...
@@ -158,7 +156,7 @@ class ElasticSearchView(StartupView):
import
json
self
.
w
(
u
"<pre>"
)
self
.
w
(
unicode
(
json
.
dumps
(
search
.
_s
.
to_dict
(),
indent
=
2
)))
self
.
w
(
str
(
json
.
dumps
(
search
.
_s
.
to_dict
(),
indent
=
2
)))
self
.
w
(
u
"</pre>"
)
self
.
w
(
u
"<br/>"
)
try
:
...
...
@@ -167,7 +165,7 @@ class ElasticSearchView(StartupView):
import
json
self
.
w
(
u
"<pre>"
)
self
.
w
(
unicode
(
json
.
dumps
(
response
.
to_dict
(),
indent
=
2
)))
self
.
w
(
str
(
json
.
dumps
(
response
.
to_dict
(),
indent
=
2
)))
self
.
w
(
u
"</pre>"
)
self
.
w
(
u
"<br/>"
)
return
response
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment