diff --git a/src/caosdb/apiutils.py b/src/caosdb/apiutils.py index a8256976b79d71f514fcc1dc9c868f1eeebc76e9..dc9209b58c8163da552f29e7a4435a0c640b1ecf 100644 --- a/src/caosdb/apiutils.py +++ b/src/caosdb/apiutils.py @@ -141,6 +141,9 @@ class CaosDBPythonEntity(object): _last_id = 0 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 # of this object in order to be # able to detect conflicts. @@ -469,6 +472,9 @@ def _single_convert_to_entity(entity, robj, **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): # Create a list of objects: @@ -490,6 +496,8 @@ def convert_to_entity(python_object, **kwargs): 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): # Create a list of objects: