[Erp5-report] r43155 arnaud.fontaine - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 8 07:24:12 CET 2011
Author: arnaud.fontaine
Date: Tue Feb 8 07:24:12 2011
New Revision: 43155
URL: http://svn.erp5.org?rev=43155&view=rev
Log:
On Business Template installation, after migrating a Property Sheet
from filesystem to ZODB, unwrap the created object before adding it to
the PersistentMapping, failing to do so resulted in "Can't Pickle
objects in acquisition wrappers" when serializing the object
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=43155&r1=43154&r2=43155&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Tue Feb 8 07:24:12 2011
@@ -3691,7 +3691,7 @@ class PropertySheetTemplateItem(Document
# Update 'migrate_object_dict' with the new path
key = 'portal_property_sheets/%s' % class_id
- migrate_object_dict[key] = new_property_sheet
+ migrate_object_dict[key] = new_property_sheet.aq_base
del migrate_object_dict[class_id]
# Remove old reference in 'object_dict' as it does not make
More information about the Erp5-report
mailing list