dataimport.py
branchstable
changeset 5063 2a94b61837e1
parent 5054 cb066d29166a
child 5066 bf5cbc351e99
--- 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():