Commit 4631a0cf authored by Jérome Perrin's avatar Jérome Perrin

base/MovementGroup: py3

parent a00646c4
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.Utils import ensure_list
from erp5.component.interface.IMovementGroup import IMovementGroup from erp5.component.interface.IMovementGroup import IMovementGroup
import zope.interface import zope.interface
...@@ -100,7 +101,7 @@ class MovementGroup(XMLObject): ...@@ -100,7 +101,7 @@ class MovementGroup(XMLObject):
tmp_dict[key][0].append(movement) tmp_dict[key][0].append(movement)
else: else:
tmp_dict[key] = [[movement], property_dict] tmp_dict[key] = [[movement], property_dict]
return tmp_dict.values() return ensure_list(tmp_dict.values())
def separate(self, movement_list, **kw): def separate(self, movement_list, **kw):
# We sort group of simulation movements by their IDs. # We sort group of simulation movements by their IDs.
......
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