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
OWL2YAMS
Commits
5da386066a22
Commit
5da38606
authored
Nov 26, 2021
by
Élodie Thiéblin
Browse files
fix: small error printing fixes on multiheritage
parent
b0b3cb1f58f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
owl2yams/__init__.py
View file @
5da38606
...
...
@@ -127,11 +127,12 @@
if
superior_class_fragment
is
not
None
:
superior_classes
.
append
(
superior_class_fragment
)
if
superior_classes
:
print
(
f
"Warning: multi heritage is not support yet.
{
class_fragment
}
will speizialize "
,
f
"
{
superior_classes
[
0
]
}
and
{
superior_classes
[
1
::]
}
"
,
"specialization will be ignored"
,
)
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
]
# 2. fetch all datatype properties
...
...
Write
Preview
Supports
Markdown
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