From 7ed6dec0f42bd875153943ec48d7863e2d2dca39 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Wed, 16 Dec 2009 15:05:42 +0000 Subject: [PATCH] call _getPropertyAndCategoryList instead of using __dict__, because here movement can be 'real_simulation_movement.asContext()' value and __dict__ contains activate, reindexObject attributes etc. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31338 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/MovementCollectionDiff.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/product/ERP5/MovementCollectionDiff.py b/product/ERP5/MovementCollectionDiff.py index f0371b79e8..d401e0a589 100644 --- a/product/ERP5/MovementCollectionDiff.py +++ b/product/ERP5/MovementCollectionDiff.py @@ -88,10 +88,7 @@ class MovementCollectionDiff(object): """ property_dict = self._property_dict_dict.get(movement) if property_dict is None: - # movement should be 'Temporary Simulation Movement' - return dict([(x,y) for x,y in movement.__dict__.items() \ - if not x.startswith('_') and \ - not x in ('id', 'portal_type', 'uid')]) + return _getPropertyAndCategoryList(movement) else: return property_dict -- 2.30.9