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
compound
Commits
fc0dbb2750c0
Commit
b28e58d9
authored
Oct 28, 2022
by
Laurent Peuch
Browse files
refactor(deprecation): subject_relations() has been inlined
parent
d1071e61d149
Pipeline
#158637
passed with stages
in 5 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_compound/entities.py
View file @
fc0dbb27
...
...
@@ -45,7 +45,7 @@ def copy_entity(original, cw_skip_copy_for=None, **attributes):
"""
attrs
=
attributes
.
copy
()
original
.
complete
()
for
rschema
in
original
.
e_schema
.
subject_relations
():
for
rschema
in
original
.
e_schema
.
subject_relations
.
values
():
if
(
not
rschema
.
final
or
rschema
.
meta
or
(
rschema
.
type
,
'subject'
)
in
original
.
cw_skip_copy_for
):
continue
...
...
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