Skip to content
Snippets Groups Projects
Commit d70fc968 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: use identifiable instead of record

parent bd89bf74
Branches
Tags
2 merge requests!71REL: RElease v0.2.0,!5FIX: use identifiable instead of record
......@@ -204,7 +204,8 @@ class Crawler(object):
Returns True otherwise.
"""
for p in record.properties:
identifiable = self.identifiableAdapter.get_identifiable(record)
for p in identifiable.properties:
# TODO: implement for lists?
if (is_reference(p) and isinstance(p.value, db.Entity)
and p.value.id is None):
......@@ -229,7 +230,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
# TODO: implement for lists?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment