Commit 64258dbd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use '<instance_home>/bt5' as the default location of subversion workcopy path,...

use '<instance_home>/bt5' as the default location of subversion workcopy path, that is the default location of erp5.recipe.zope2instance recipe.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41577 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5c2f0e9e
......@@ -36,6 +36,8 @@ from Products.ERP5Type import Permissions
from Products.ERP5Subversion import _dtmldir
from Products.ERP5Type.DiffUtils import DiffFile
from Products.ERP5Subversion.SubversionClient import newSubversionClient
from zLOG import LOG, WARNING
from App.config import getConfiguration
import os, re
from DateTime import DateTime
from cPickle import dumps, loads
......@@ -422,8 +424,11 @@ class SubversionTool(BaseTool):
wc_list = self.getPortalObject().portal_preferences\
.getPreferredSubversionWorkingCopyList()
if not wc_list or len(wc_list) == 0 :
raise SubversionPreferencesError, \
'Please set at least one Subversion Working Copy in preferences first.'
LOG('SubvertionTool', WARNING,
'working copy path is not specified in preferences. '
'<instance_home>/bt5 directory is used by default.')
instance_home = getConfiguration().instancehome
wc_list = [os.path.join(instance_home, 'bt5'),]
bt_name = business_template.getTitle()
join = os.path.join
isdir = os.path.isdir
......
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