Commit b5406f92 authored by Nicolas Dumazet's avatar Nicolas Dumazet

if the property sheet exists in both the filesystem and ZODB, zodb should take over

(CMFActivity PropertySheet's might stay on the filesystem?)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42017 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 805a006a
......@@ -265,10 +265,10 @@ def generatePortalTypeClass(portal_type_name):
#
# NOTE: The Property Sheets of a document should be given as a
# string from now on
if isinstance(property_sheet, basestring) and \
property_sheet in zodb_property_sheet_set:
property_sheet_name = property_sheet
property_sheet_set.add(property_sheet_name)
if not isinstance(property_sheet, basestring):
property_sheet = property_sheet.__name__
if property_sheet in zodb_property_sheet_set:
property_sheet_set.add(property_sheet)
import erp5
......
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