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

MAINT: inherit syncnode

parent 518d9166
Branches
Tags
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!167Sync Graph
Pipeline #51818 failed
......@@ -445,8 +445,8 @@ class IdentifiableAdapter(metaclass=ABCMeta):
return False
appropriate_types = []
appropriate_types.extend(get_children_of_rt(
register_identifiable.get_property("is_referenced_by").value))
for rt in register_identifiable.get_property("is_referenced_by").value:
appropriate_types.extend(get_children_of_rt(rt))
appropriate_types = [el.lower() for el in appropriate_types]
if "*" in appropriate_types:
return True
......
......@@ -47,7 +47,7 @@ class TempID(int):
pass
class SyncNode:
class SyncNode(db.Entity):
"""represents the information of an Entity as it shall be created in LinkAhead
The following information is taken from an db.Entity object during initialization or when the
......@@ -69,7 +69,7 @@ class SyncNode:
def __init__(
self, entity: db.Entity, registered_identifiable: Optional[db.RecordType] = None
) -> None:
):
# db.Entity properties
self.id: Union[int, TempID, str] = entity.id
self.role = entity.role
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment