Commit b35d7c3e authored by Antoine Millet's avatar Antoine Millet

Fixed method to check if an object is first level in objectdb.

parent da4bf30f
......@@ -381,10 +381,9 @@ class ObjectsDB(object):
'''
ids = set()
for oid in self._objects:
parid = oid.partition('.')[0]
ids.add(parid)
for obj in self._objects.values():
if not '__parent' in obj:
ids.add(obj['id'])
return ids
def get(self, oid):
......
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