[dataimport] Fix method signature
authorSamuel Trégouët <samuel.tregouet@logilab.fr>
Tue, 01 Dec 2015 13:39:17 +0100
changeset 10983 da8168612e61
parent 10982 20bf21bb16e4
child 10984 a42f6e7cef35
[dataimport] Fix method signature Since d4bd28d5fca8, _storage_handler expect 4 args. grafted from b089858c49a2806b6ea8a7ee66773436701e947c (3.22) related to #9177565.
dataimport/pgstore.py
--- a/dataimport/pgstore.py	Tue Dec 01 13:38:21 2015 +0100
+++ b/dataimport/pgstore.py	Tue Dec 01 13:39:17 2015 +0100
@@ -412,7 +412,7 @@
             _sql[statement] = [data]
 
     def add_entity(self, cnx, entity):
-        with self._storage_handler(entity, 'added'):
+        with self._storage_handler(cnx, entity, 'added'):
             attrs = self.preprocess_entity(entity)
             rtypes = self._inlined_rtypes_cache.get(entity.cw_etype, ())
             if isinstance(rtypes, str):