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
OWL2YAMS
Commits
4ba713be6ada
Commit
4ba713be
authored
Nov 26, 2021
by
Fabien Amarger
Browse files
fix(multi heritage): Handle multi heritage using string join
This needs
open-source/logilab-common!46
before publish
parent
4c11274826c9
Pipeline
#96372
passed with stages
in 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
owl2yams/__init__.py
View file @
4ba713be
...
...
@@ -178,13 +178,7 @@
if
superior_class_fragment
is
not
None
:
superior_classes
.
append
(
superior_class_fragment
)
if
superior_classes
:
if
len
(
superior_classes
)
>
1
:
print
(
f
"Warning: multi-heritage is not support yet.
{
class_fragment
}
will specialize"
,
f
"
{
superior_classes
[
0
]
}
and
{
', '
.
join
(
superior_classes
[
1
::])
}
"
,
"specialization will be ignored"
,
)
entity_schema
.
_specialized_type
=
superior_classes
[
0
]
entity_schema
.
_specialized_type
=
", "
.
join
(
superior_classes
)
# 2. fetch all datatype properties
...
...
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