Commit b61b2935 authored by Fabien Morin's avatar Fabien Morin

use transaction.commit() instead of get_transaction().commit() to remove warinings in log


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26399 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b74e8a51
......@@ -48,6 +48,7 @@ from OFS.Traversable import NotFound
from Products.ERP5Type.patches.copyTree import copytree, Error
from Products.ERP5Type.patches.cacheWalk import cacheWalk
from time import ctime
import transaction
try:
import pysvn
......@@ -1124,7 +1125,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
path = mktemp() + os.sep
try:
# XXX: Big hack to make export work as expected.
get_transaction().commit()
transaction.commit()
business_template.export(path=path, local=1)
# svn del deleted files
self.deleteOldFiles(svn_path, path)
......
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