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
seda
Commits
b2c358cc1c34
Commit
9a8fa597
authored
Jun 14, 2016
by
Sylvain Thénault
Browse files
Typo
parent
8f0a89f0cba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
migration/postcreate.py
View file @
b2c358cc
...
...
@@ -92,7 +92,7 @@ def import_seda_schemes(cnx):
if
not
cnx
.
find
(
'ConceptScheme'
,
title
=
title
):
print
(
'importing'
,
title
.
encode
(
'utf-8'
))
rtype_e
=
cnx
.
find
(
'CWRType'
,
name
=
rtype
).
one
()
description
=
u
'edition 2009'
if
title
.
startwith
(
'SEDA'
)
else
None
description
=
u
'edition 2009'
if
title
.
start
s
with
(
'SEDA'
)
else
None
scheme
=
cnx
.
create_entity
(
'ConceptScheme'
,
title
=
title
,
description
=
description
,
scheme_relation_type
=
rtype_e
)
...
...
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