[dataimport] stop disabling undo ; commit return transaction id stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 30 Mar 2010 10:17:29 +0200
branchstable
changeset 5063 2a94b61837e1
parent 5062 5691fd8697cd
child 5064 494ae4ad4a14
[dataimport] stop disabling undo ; commit return transaction id
dataimport.py
--- a/dataimport.py	Mon Mar 29 19:10:22 2010 +0200
+++ b/dataimport.py	Tue Mar 30 10:17:29 2010 +0200
@@ -402,8 +402,9 @@
         self.commit()
 
     def commit(self):
-        self._commit()
+        txuuid = self._commit()
         self.session.set_pool()
+        return txuuid
 
     def rql(self, *args):
         if self._rql is not None:
@@ -562,8 +563,6 @@
         # deactivate security
         session.set_read_security(False)
         session.set_write_security(False)
-        # disable undoing
-        session.undo_actions = frozenset()
 
     def create_entity(self, etype, **kwargs):
         for k, v in kwargs.iteritems():