diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py index c4d54e08ad75305992aeb5e95505feecaafa45ea..a68e0f050c9fe6a1576b520fa5c44ab36380236e 100644 --- a/src/caosdb/common/models.py +++ b/src/caosdb/common/models.py @@ -2340,7 +2340,7 @@ class _ParentList(list): raise KeyError(str(parent) + " not found.") -class _Messages(list): +class Messages(list): """This 'kind of dictionary' stores error, warning, info, and other messages. The mentioned three messages types are messages of special use. @@ -2560,6 +2560,12 @@ class _Messages(list): if self._code is not None else '') +class _Messages(Messages): + def __init__(self, *args, **kwargs): + warn("_Messages was renamed to Messages.", DeprecationWarning) + super().__init__(*args, **kwargs) + + def _basic_sync(e_local, e_remote): '''Copy all state from a one entity to another.