Commit fe787798 authored by Christophe Dumez's avatar Christophe Dumez

- should fix subversion preference bug on some computers


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6872 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9172b6f8
......@@ -600,6 +600,10 @@ class SubversionTool(UniqueObject, Folder):
# working copy list in preferences (looking
# only at first level of directories)
wc_list = self.getPortalObject().portal_preferences.getPreferredSubversionWorkingCopyList()
if not wc_list:
wc_list = self.getPortalObject().portal_preferences.default_site_preference.getPreferredSubversionWorkingCopyList()
if not wc_list:
raise 'Preferences Error', 'Please set at least one Subversion Working Copy in preferences first.'
bt_name = bt.getTitle()
if len(wc_list) == 0 :
raise 'Preferences Error', 'Please set at least one Subversion Working Copy in preferences first.'
......
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