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
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -204,7 +204,8 @@ class Crawler(object):
@@ -204,7 +204,8 @@ class Crawler(object):
Returns True otherwise.
Returns True otherwise.
"""
"""
for p in record.properties:
identifiable = self.identifiableAdapter.get_identifiable(record)
 
for p in identifiable.properties:
# TODO: implement for lists?
# TODO: implement for lists?
if (is_reference(p) and isinstance(p.value, db.Entity)
if (is_reference(p) and isinstance(p.value, db.Entity)
and p.value.id is None):
and p.value.id is None):
@@ -229,7 +230,8 @@ class Crawler(object):
@@ -229,7 +230,8 @@ class Crawler(object):
returns true if all references either have IDs or were checked remotely and not found (i.e.
returns true if all references either have IDs or were checked remotely and not found (i.e.
they exist in the local cache)
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)
if (is_reference(p)
# Entity instead of ID and not cached locally
# Entity instead of ID and not cached locally
# TODO: implement for lists?
# TODO: implement for lists?
Loading