Commit 7ed6dec0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

call _getPropertyAndCategoryList instead of using __dict__, because here...

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
parent 4fc387f4
...@@ -88,10 +88,7 @@ class MovementCollectionDiff(object): ...@@ -88,10 +88,7 @@ class MovementCollectionDiff(object):
""" """
property_dict = self._property_dict_dict.get(movement) property_dict = self._property_dict_dict.get(movement)
if property_dict is None: if property_dict is None:
# movement should be 'Temporary Simulation Movement' return _getPropertyAndCategoryList(movement)
return dict([(x,y) for x,y in movement.__dict__.items() \
if not x.startswith('_') and \
not x in ('id', 'portal_type', 'uid')])
else: else:
return property_dict return property_dict
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment