Commit c8969f9b authored by Jérome Perrin's avatar Jérome Perrin

Add try/except for ImportError with pysvn



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7510 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 687c62da
...@@ -35,7 +35,7 @@ from Products.ERP5Type.Document.Folder import Folder ...@@ -35,7 +35,7 @@ from Products.ERP5Type.Document.Folder import Folder
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5Subversion import _dtmldir from Products.ERP5Subversion import _dtmldir
from Products.ERP5Subversion.SubversionClient import newSubversionClient from Products.ERP5Subversion.SubversionClient import newSubversionClient
import os, re, pysvn import os, re
from DateTime import DateTime from DateTime import DateTime
from cPickle import dumps, loads from cPickle import dumps, loads
from App.config import getConfiguration from App.config import getConfiguration
...@@ -48,6 +48,11 @@ from OFS.Traversable import NotFound ...@@ -48,6 +48,11 @@ from OFS.Traversable import NotFound
from Products.ERP5Type.patches.copyTree import copytree, Error from Products.ERP5Type.patches.copyTree import copytree, Error
from Products.ERP5Type.patches.cacheWalk import cacheWalk from Products.ERP5Type.patches.cacheWalk import cacheWalk
try:
import pysvn
except ImportError:
pysvn = None
try: try:
from base64 import b64encode, b64decode from base64 import b64encode, b64decode
except ImportError: except ImportError:
......
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