Commit 218c8bb1 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix migration of BT Property Sheets on Zope 2.8

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42933 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b0fc293e
......@@ -3623,12 +3623,13 @@ class PropertySheetTemplateItem(DocumentTemplateItem,
# Migrate all the filesystem Property Sheets of the Business
# Template if any
property_sheet_tool = context.getPortalObject().portal_property_sheets
property_sheet_id_set = set(property_sheet_tool.objectIds())
for class_id in migrate_object_dict:
# If the Property Sheet already exists in ZODB, then skip it,
# otherwise it should not be needed anymore once the deletion
# code of the filesystem Property Sheets is enabled
if class_id in property_sheet_tool:
if class_id in property_sheet_id_set:
raise RuntimeError('Conflict when migrating Property Sheet %s: ' \
'already exists in portal_property_sheets' % \
class_id)
......
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