[Erp5-report] r37704 fabien - /erp5/trunk/products/ERP5Type/PropertySheet/BaseType.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Aug 11 15:12:09 CEST 2010


Author: fabien
Date: Wed Aug 11 15:12:04 2010
New Revision: 37704

URL: http://svn.erp5.org?rev=37704&view=rev
Log:
Set empty string as default value for type_icon because CMF core don't handle
None value and raise. This makes you having a site_error if you call getIcon on
an object with no icon defined on his portal_types.

Modified:
    erp5/trunk/products/ERP5Type/PropertySheet/BaseType.py

Modified: erp5/trunk/products/ERP5Type/PropertySheet/BaseType.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/BaseType.py?rev=37704&r1=37703&r2=37704&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/BaseType.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/PropertySheet/BaseType.py [utf8] Wed Aug 11 15:12:04 2010
@@ -36,6 +36,7 @@ class BaseType:
           'storage_id': 'content_icon', # CMF Compatibility
           'type':       'string',
           'mode':       'w',
+          'default':    '',
          },
         { 'id':         'type_factory_method_id',
           'storage_id': 'factory', # CMF Compatibility




More information about the Erp5-report mailing list