Commit 4e24f9eb authored by Denis Laxalde's avatar Denis Laxalde
Browse files

Account for a parent not being adaptable in ITreeBase.iterancestors()

parent e9dd2397f4ef
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment