From ef051e18f56adee5d7a1c2377df6bac52c380d6a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Fri, 14 Apr 2023 14:42:53 +0200
Subject: [PATCH] MAINT: rename Messages

---
 src/caosdb/common/models.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py
index c4d54e08..a68e0f05 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.
 
-- 
GitLab