ignore invalid items coming from BSCW
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3990 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
1239121913
commit
222df2ba2a
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ class ReadContainer(BSCWProxyBase, ReadContainer):
|
||||||
def data(self):
|
def data(self):
|
||||||
data = self.attributes
|
data = self.attributes
|
||||||
if len(data) > 1:
|
if len(data) > 1:
|
||||||
return dict((item['id'], item) for item in data[1])
|
return dict((item['id'], item) for item in data[1] if 'id' in item)
|
||||||
else:
|
else:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue