Commit 24e74567 authored by Vincent Pelletier's avatar Vincent Pelletier

Preference tool handles preference priority by itself.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9817 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 697d0569
......@@ -703,9 +703,6 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
"""
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 or len(wc_list) == 0 :
raise SubversionPreferencesError, \
'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