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

MAINT: rename CaosDBPythonEntity -> LinkAheadPythonEntity

parent 37ff81c6
No related branches found
No related tags found
1 merge request!111MAINT: LinkAhead rename
Pipeline #40648 passed with warnings
...@@ -264,7 +264,7 @@ class LinkAheadPythonEntity(object): ...@@ -264,7 +264,7 @@ class LinkAheadPythonEntity(object):
def _set_property_from_entity(self, ent: db.Entity, importance: str, def _set_property_from_entity(self, ent: db.Entity, importance: str,
references: Optional[db.Container], references: Optional[db.Container],
visited: Dict[int, "CaosDBPythonEntity"]): visited: Dict[int, "LinkAheadPythonEntity"]):
""" """
Set a new property using an entity from the normal python API. Set a new property using an entity from the normal python API.
...@@ -382,7 +382,7 @@ class LinkAheadPythonEntity(object): ...@@ -382,7 +382,7 @@ class LinkAheadPythonEntity(object):
val: List, val: List,
pr: str, pr: str,
references: Optional[db.Container], references: Optional[db.Container],
visited: Dict[int, "CaosDBPythonEntity"]): visited: Dict[int, "LinkAheadPythonEntity"]):
""" """
Convert a list to a python list of the correct type. Convert a list to a python list of the correct type.
...@@ -403,7 +403,7 @@ class LinkAheadPythonEntity(object): ...@@ -403,7 +403,7 @@ class LinkAheadPythonEntity(object):
val: Any, val: Any,
pr: str, pr: str,
references: Optional[db.Container], references: Optional[db.Container],
visited: Dict[int, "CaosDBPythonEntity"]): visited: Dict[int, "LinkAheadPythonEntity"]):
""" """
Convert val to the correct type which is indicated by the database Convert val to the correct type which is indicated by the database
type string in pr. type string in pr.
...@@ -810,7 +810,7 @@ def _single_convert_to_python_object(robj: LinkAheadPythonEntity, ...@@ -810,7 +810,7 @@ def _single_convert_to_python_object(robj: LinkAheadPythonEntity,
entity: db.Entity, entity: db.Entity,
references: Optional[db.Container] = None, references: Optional[db.Container] = None,
visited: Optional[Dict[int, visited: Optional[Dict[int,
"CaosDBPythonEntity"]] = None): "LinkAheadPythonEntity"]] = None):
""" """
Convert a db.Entity from the standard API to a (previously created) Convert a db.Entity from the standard API to a (previously created)
LinkAheadPythonEntity from the high level API. LinkAheadPythonEntity from the high level API.
...@@ -941,7 +941,7 @@ def convert_to_entity(python_object): ...@@ -941,7 +941,7 @@ def convert_to_entity(python_object):
def convert_to_python_object(entity: Union[db.Container, db.Entity], def convert_to_python_object(entity: Union[db.Container, db.Entity],
references: Optional[db.Container] = None, references: Optional[db.Container] = None,
visited: Optional[Dict[int, visited: Optional[Dict[int,
"CaosDBPythonEntity"]] = None): "LinkAheadPythonEntity"]] = None):
""" """
Convert either a container of LinkAhead entities or a single LinkAhead entity Convert either a container of LinkAhead entities or a single LinkAhead entity
into the high level representation. into the high level representation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment