Skip to content
Snippets Groups Projects
Verified Commit ecf16ac0 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Deprecating components which are to be replaced.

parent 0cc8ccb1
No related branches found
No related tags found
1 merge request!53Release 0.7.2
Pipeline #20447 passed
...@@ -141,6 +141,9 @@ class CaosDBPythonEntity(object): ...@@ -141,6 +141,9 @@ class CaosDBPythonEntity(object):
_last_id = 0 _last_id = 0
def __init__(self): def __init__(self):
warnings.warn("The CaosDBPythonEntity class is deprecated, replacements will be provided by"
" the high_level_api module.",
DeprecationWarning, stacklevel=2)
# Save a copy of the dry state # Save a copy of the dry state
# of this object in order to be # of this object in order to be
# able to detect conflicts. # able to detect conflicts.
...@@ -469,6 +472,9 @@ def _single_convert_to_entity(entity, robj, **kwargs): ...@@ -469,6 +472,9 @@ def _single_convert_to_entity(entity, robj, **kwargs):
def convert_to_entity(python_object, **kwargs): def convert_to_entity(python_object, **kwargs):
warnings.warn("The convert_to_entity function is deprecated, replacement will be provided by "
"the high_level_api module.", DeprecationWarning, stacklevel=2)
if isinstance(python_object, Container): if isinstance(python_object, Container):
# Create a list of objects: # Create a list of objects:
...@@ -490,6 +496,8 @@ def convert_to_entity(python_object, **kwargs): ...@@ -490,6 +496,8 @@ def convert_to_entity(python_object, **kwargs):
def convert_to_python_object(entity): def convert_to_python_object(entity):
"""""" """"""
warnings.warn("The convert_to_python_object function is deprecated, replacement will be "
"provided by the high_level_api module.", DeprecationWarning, stacklevel=2)
if isinstance(entity, Container): if isinstance(entity, Container):
# Create a list of objects: # Create a list of objects:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment