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
skos
Commits
60f8c89415f9
Commit
79228f93
authored
Feb 19, 2018
by
Denis Laxalde
Browse files
Use MetadataGenerator instead of deprecated MetaGenerator
Related to #17133718.
parent
0256cb3dc9a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
sobjects.py
View file @
60f8c894
...
...
@@ -215,7 +215,7 @@ def import_skos_extentities(cnx, entities, import_log,
# metagenerator to properly set the source for created entities
if
store
is
None
:
if
metagenerator
is
None
:
metagenerator
=
dataimport
.
MetaGenerator
(
cnx
,
source
=
source
)
metagenerator
=
dataimport
.
Meta
data
Generator
(
cnx
,
source
=
source
)
store
=
dataimport
.
NoHookRQLObjectStore
(
cnx
,
metagenerator
)
else
:
assert
metagenerator
is
None
,
'you should not give both a store and a metadata generator'
...
...
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