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

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 18 10:14:45 CET 2011


Author: nicolas.dumazet
Date: Tue Jan 18 10:14:44 2011
New Revision: 42401

URL: http://svn.erp5.org?rev=42401&view=rev
Log:
preferences are added to Preference Tool AND Preference objects, of course.

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=42401&r1=42400&r2=42401&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/portal_type_class.py [utf8] Tue Jan 18 10:14:44 2011
@@ -248,7 +248,7 @@ def generatePortalTypeClass(portal_type_
         # 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":
+        if portal_type_name in ("Preference Tool", "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