Commit 300b2884 authored by Christophe Dumez's avatar Christophe Dumez

- no edit path for files deleted from zodb


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6645 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b9fd349
...@@ -450,6 +450,9 @@ class SubversionTool(UniqueObject, Folder): ...@@ -450,6 +450,9 @@ class SubversionTool(UniqueObject, Folder):
if 'bt' in path.split('/'): if 'bt' in path.split('/'):
# not in zodb # not in zodb
return '#' return '#'
# if file have been deleted then not in zodb
if not os.path.exists(path):
return '#'
svn_path = bt.getPortalObject().portal_preferences.getPreference('subversion_working_copy') svn_path = bt.getPortalObject().portal_preferences.getPreference('subversion_working_copy')
if not svn_path: if not svn_path:
raise 'Error: Please set working copy path in Subversion preferences !' raise 'Error: Please set working copy path in Subversion preferences !'
......
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