Skip to content
Snippets Groups Projects

FIX: use identifiable instead of record

Merged Henrik tom Wörden requested to merge f-identifiable into dev
Compare and
4 files
+ 79
35
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 5
2
@@ -423,7 +423,9 @@ class Crawler(object):
Returns True otherwise.
"""
for p in record.properties:
identifiable = self.identifiableAdapter.get_identifiable(record)
for p in identifiable.properties:
if isinstance(p.value, list):
for el in p.value:
if isinstance(el, db.Entity) and el.id is None:
@@ -468,7 +470,8 @@ class Crawler(object):
returns true if all references either have IDs or were checked remotely and not found (i.e.
they exist in the local cache)
"""
for p in record.properties:
identifiable = self.identifiableAdapter.get_identifiable(record)
for p in identifiable.properties:
# if (is_reference(p)
# Entity instead of ID and not cached locally
if (isinstance(p.value, list)):
Loading