[Erp5-report] r42870 nicolas.dumazet - /erp5/trunk/products/ERP5Type/dynamic/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 1 07:57:47 CET 2011


Author: nicolas.dumazet
Date: Tue Feb  1 07:57:47 2011
New Revision: 42870

URL: http://svn.erp5.org?rev=42870&view=rev
Log:
System Preferences also need preferences accessor holders

Modified:
    erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py

Modified: erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py?rev=42870&r1=42869&r2=42870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] Tue Feb  1 07:57:47 2011
@@ -255,7 +255,9 @@ def generatePortalTypeClass(site, portal
         # 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)



More information about the Erp5-report mailing list