diff --git a/integrator/browser/bscw.py b/integrator/browser/bscw.py index f1b27d8..9600b17 100644 --- a/integrator/browser/bscw.py +++ b/integrator/browser/bscw.py @@ -104,7 +104,7 @@ class ItemView(BaseView): @property def breadCrumbs(self): - parents = list(self.context.parents) + parents = [p for p in self.context.parents if p is not None] for p in reversed(parents): view = ItemView(p, self.request, self.parentView) yield dict(url=view.url, title=view.title) diff --git a/integrator/bscw.py b/integrator/bscw.py index 8a374e9..48ed18c 100644 --- a/integrator/bscw.py +++ b/integrator/bscw.py @@ -166,7 +166,8 @@ class BSCWProxyBase(object): return parentId = self.properties['location']['__id__'].lstrip('bs_') p = self.connection.getProxy(address=parentId, nested=False) - while parentId != self.connection.rootId: + while p is not None and parentId != self.connection.rootId: + #while parentId != self.connection.rootId: yield p parentId = p.properties['location']['__id__'].lstrip('bs_') p = self.connection.getProxy(address=parentId)