Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
acbf18f5
Commit
acbf18f5
authored
Jan 25, 2020
by
LE GAC Renaud
Browse files
Update to fix remaining itervalues and iteritems.
parent
a14ff11e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/invenio_tools/recordpubli.py
modules/invenio_tools/recordpubli.py
+1
-1
scripts/deploy.py
scripts/deploy.py
+1
-1
No files found.
modules/invenio_tools/recordpubli.py
View file @
acbf18f5
...
...
@@ -803,7 +803,7 @@ class RecordPubli(Record):
data
=
(
data
if
isinstance
(
data
,
list
)
else
[
data
])
li
=
[]
[
li
.
extend
(
di
.
iter
values
())
for
di
in
data
]
[
li
.
extend
(
di
.
values
())
for
di
in
data
]
return
", "
.
join
(
sorted
(
li
))
...
...
scripts/deploy.py
View file @
acbf18f5
...
...
@@ -172,7 +172,7 @@ def create_harvesters(opt, dfi, dfh):
#
# categories
#
for
key
,
value
in
CONTROLLER_TO_CAT
.
iter
items
():
for
key
,
value
in
CONTROLLER_TO_CAT
.
items
():
id_category
=
get_id
(
db
.
categories
,
code
=
value
)
if
id_category
is
None
:
print
(
"
\n\t\t
ERROR: category '%s' is not defined. exit"
%
value
)
...
...
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