Commit 4cae6861 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revert part of my change in r.21501.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21571 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0f08327
...@@ -624,9 +624,17 @@ class PropertyMovementGroup(RootMovementGroup): ...@@ -624,9 +624,17 @@ class PropertyMovementGroup(RootMovementGroup):
return self._property_dict[self._property] == \ return self._property_dict[self._property] == \
movement.getProperty(self._property) movement.getProperty(self._property)
class ResourceMovementGroup(PropertyMovementGroup): class ResourceMovementGroup(RootMovementGroup):
""" Group movements that have the same resource. """ """ Group movements that have the same resource. """
_property = 'resource' def __init__(self, movement, **kw):
RootMovementGroup.__init__(self, movement=movement, **kw)
self.resource = movement.getResource()
self.setGroupEdit(
resource_value=movement.getResourceValue()
)
def test(self, movement):
return movement.getResource() == self.resource
allow_class(ResourceMovementGroup) allow_class(ResourceMovementGroup)
......
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