Commit d9b0fa67 authored by Nicolas Dumazet's avatar Nicolas Dumazet

System Preferences also need preferences accessor holders


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42870 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2070108
......@@ -255,7 +255,9 @@ def generatePortalTypeClass(site, portal_type_name):
# 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 in ("Preference Tool", "Preference"):
if portal_type_name in ("Preference Tool",
"Preference",
"System Preference"):
for property_sheet in zodb_property_sheet_set:
if property_sheet.endswith('Preference'):
property_sheet_set.add(property_sheet)
......
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