Commit e798b6b9 authored by Nicolas Dumazet's avatar Nicolas Dumazet

preferences are added to Preference Tool AND Preference objects, of course.


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