Commit 837e21b4 authored by Nicolas Dumazet's avatar Nicolas Dumazet

attach ".* Preference" property sheets to Property Sheet Tool dynamically


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42011 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4011e4e9
......@@ -244,6 +244,14 @@ def generatePortalTypeClass(portal_type_name):
for property_sheet in portal_type.getTypePropertySheetList():
if property_sheet in zodb_property_sheet_set:
property_sheet_set.add(property_sheet)
# XXX maybe this should be a generic hook, adding property sheets
# dynamically for a given portal type name? If done well, this
# system could perhaps help erp5_egov to get rid of aq_dynamic
if portal_type_name == "Preference Tool":
for property_sheet in zodb_property_sheet_set:
if property_sheet.endswith('Preference'):
property_sheet_set.add(property_sheet)
else:
zodb_property_sheet_set = set()
......
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