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
7238fcef1eb1
Commit
7238fcef
authored
Nov 25, 2021
by
Élodie Thiéblin
Browse files
fix: handle multiple heritage in domain
parent
77da3d86a799
Pipeline
#96194
failed with stages
in 1 minute and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
owl2yams/__init__.py
View file @
7238fcef
...
...
@@ -173,8 +173,9 @@
for
domain_fragment
in
domain_fragments
:
# if the parent of the domain is already in domain_fragments
domain_parent
=
schema
[
domain_fragment
].
specializes
()
if
domain_parent
is
not
None
and
domain_parent
.
type
in
domain_fragments
:
domain_parents_str
=
schema
[
domain_fragment
].
_specialized_type
or
""
domain_parents
=
domain_parents_str
.
split
(
", "
)
if
set
(
domain_parents
).
intersection
(
set
(
domain_fragments
)):
continue
schema
.
add_relation_def
(
RelationDefinition
(
...
...
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