[Erp5-report] r45696 jerome - /erp5/trunk/products/ERP5/mixin/property_recordable.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 27 17:44:02 CEST 2011


Author: jerome
Date: Wed Apr 27 17:44:01 2011
New Revision: 45696

URL: http://svn.erp5.org?rev=45696&view=rev
Log:
we cannot use ** on a persistent mapping, cast it to dict before.

Modified:
    erp5/trunk/products/ERP5/mixin/property_recordable.py

Modified: erp5/trunk/products/ERP5/mixin/property_recordable.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/mixin/property_recordable.py?rev=45696&r1=45695&r2=45696&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/mixin/property_recordable.py [utf8] (original)
+++ erp5/trunk/products/ERP5/mixin/property_recordable.py [utf8] Wed Apr 27 17:44:01 2011
@@ -128,7 +128,7 @@ class PropertyRecordableMixin:
     which recorded properties in its context.
     """
     context = self.asContext()
-    context.edit(**self._getRecordedPropertyDict())
+    context.edit(**dict(self._getRecordedPropertyDict()))
     return context
 
   def _getRecordedPropertyDict(self):



More information about the Erp5-report mailing list