cubicweb/utils.py
changeset 12306 c96dd92e480e
parent 12305 9fd7d496e27e
child 12308 cbbcfa69a0e7
--- a/cubicweb/utils.py	Tue Apr 24 17:30:43 2018 +0200
+++ b/cubicweb/utils.py	Tue Apr 24 17:16:44 2018 +0200
@@ -639,6 +639,11 @@
         except KeyError:
             return default
 
+    def __iter__(self):
+        with self._lock:
+            for k, v in self._data.items():
+                yield k, v
+
     def __getitem__(self, k):
         with self._lock:
             if k in self._permanent: