From 5384dcdc9edebe940b74ac53fc3c7ee0f7bab25e Mon Sep 17 00:00:00 2001 From: Alexander Schlemmer <a.schlemmer@indiscale.com> Date: Tue, 21 May 2024 11:32:06 +0200 Subject: [PATCH] DOC: docstrings improved in indentifiable_adapters --- src/caoscrawler/identifiable_adapters.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/caoscrawler/identifiable_adapters.py b/src/caoscrawler/identifiable_adapters.py index b1accd25..9fa297cc 100644 --- a/src/caoscrawler/identifiable_adapters.py +++ b/src/caoscrawler/identifiable_adapters.py @@ -149,13 +149,17 @@ identifiabel, identifiable and identified record) for a Record. return query_string def check_identifying_props(self, node, raise_exception=True): - """checks whether all identifying properties exist and raises an error if not + """checks whether all identifying properties exist and raises an error if + that's not the case. It furthermore raises an error if "name" is part of + the identifiable, but the node does not have a name. If raise_exception is False, the function returns False instead of raising an error. Backreferences are not checked. Returns True if all identifying properties exist. + + Last review by Alexander Schlemmer on 2024-05-24. """ if node.registered_identifiable is None: if raise_exception: -- GitLab