Commit 70f99787 authored by Jérome Perrin's avatar Jérome Perrin

use transaction module


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26929 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3de35d4f
......@@ -31,6 +31,7 @@
import os
import transaction
import Products.ERP5Type
from Products.MailHost.MailHost import MailHost
from zLOG import LOG
......@@ -235,7 +236,7 @@ class reindex(object):
def __call__(self, *args, **kw):
ret = self._func(self._instance, *args, **kw)
if kw.get('reindex', 1):
get_transaction().commit()
transaction.commit()
self._instance.tic()
return ret
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment