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
587b718f1284
Commit
4e24f9eb
authored
Apr 26, 2019
by
Denis Laxalde
Browse files
Account for a parent not being adaptable in ITreeBase.iterancestors()
parent
e9dd2397f4ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_seda/entities/itree.py
View file @
587b718f
...
...
@@ -68,6 +68,8 @@ class IContainedToITreeBase(EntityAdapter):
break
yield
curr
curr
=
curr
.
cw_adapt_to
(
'ITreeBase'
)
if
curr
is
None
:
break
return
_uptoroot
(
self
)
iterparents
=
iterancestors
# Compat. with CubicWeb's ITree.
...
...
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