From fe78779890e89cb72c3f89e29254200f0fc6cd61 Mon Sep 17 00:00:00 2001 From: Christophe Dumez <christophe@nexedi.com> Date: Mon, 24 Apr 2006 08:55:21 +0000 Subject: [PATCH] - 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 --- product/ERP5Subversion/Tool/SubversionTool.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/ERP5Subversion/Tool/SubversionTool.py b/product/ERP5Subversion/Tool/SubversionTool.py index c8739907e5..390d78de8f 100644 --- a/product/ERP5Subversion/Tool/SubversionTool.py +++ b/product/ERP5Subversion/Tool/SubversionTool.py @@ -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.' -- 2.30.9