Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
datacat
Commits
57292a60ebe7
Commit
4c63bc76
authored
Oct 20, 2021
by
François Ferry
Browse files
fix: encoding issue
parent
c9942aae91f9
Pipeline
#89167
failed with stages
in 9 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_datacat/views/__init__.py
View file @
57292a60
...
...
@@ -293,7 +293,7 @@ class CkanJsonLicenseView(jsonviews.JsonMixIn, EntityView):
(
"status"
,
"active"
),
]:
license
[
key
]
=
found
.
get
(
key
,
default_value
)
self
.
w
(
json_dumps
(
license
,
sort_keys
=
True
))
self
.
w
(
json_dumps
(
license
,
sort_keys
=
True
)
.
encode
(
"ascii"
)
)
class
CkanJsonLicensesAction
(
action
.
Action
):
...
...
@@ -321,7 +321,7 @@ class CkanJsonLicensesView(jsonviews.JsonMixIn, AnyRsetView):
for
scheme
in
self
.
cw_rset
.
entities
():
for
concept
in
scheme
.
reverse_in_scheme
:
licenses
.
append
(
json
.
loads
(
concept
.
view
(
"dcat.ckan.json.license"
)))
self
.
w
(
json_dumps
(
licenses
,
sort_keys
=
True
))
self
.
w
(
json_dumps
(
licenses
,
sort_keys
=
True
)
.
encode
(
"ascii"
)
)
#
...
...
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