Commit 41ff8687 authored by Jérome Perrin's avatar Jérome Perrin

remove CriterionMovementGroup and its helper methods as it is not used and not...

remove CriterionMovementGroup and its helper methods as it is not used and not migrated to new style movement groups.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29126 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99eb608a
...@@ -87,9 +87,3 @@ class InvoiceCell(DeliveryCell): ...@@ -87,9 +87,3 @@ class InvoiceCell(DeliveryCell):
# # Never divergent # # Never divergent
# return 0 # return 0
security.declareProtected(Permissions.AccessContentsInformation, 'getGroupCriterion')
def getGroupCriterion(self):
"""
Return the criterion for grouping. This should be overriden by each class.
"""
return int(round(self.getPrice() * 100))
...@@ -101,10 +101,3 @@ class InvoiceLine(DeliveryLine): ...@@ -101,10 +101,3 @@ class InvoiceLine(DeliveryLine):
# # Never divergent # # Never divergent
# return 0 # return 0
security.declareProtected( Permissions.AccessContentsInformation,
'getGroupCriterion' )
def getGroupCriterion(self):
"""
Return the criterion for grouping. This should be overriden by each class.
"""
return int(round(self.getPrice() * 100))
...@@ -496,24 +496,6 @@ class FakeMovement: ...@@ -496,24 +496,6 @@ class FakeMovement:
class RootMovementGroup(MovementGroupNode): class RootMovementGroup(MovementGroupNode):
pass pass
class CriterionMovementGroup(RootMovementGroup):
def __init__(self,movement,**kw):
RootMovementGroup.__init__(self, movement=movement, **kw)
if hasattr(movement, 'getGroupCriterion'):
self.criterion = movement.getGroupCriterion()
else:
self.criterion = None
def test(self,movement):
# we must have the same criterion
if hasattr(movement, 'getGroupCriterion'):
criterion = movement.getGroupCriterion()
else:
criterion = None
return self.criterion == criterion
allow_class(CriterionMovementGroup)
class SplitResourceMovementGroup(RootMovementGroup): class SplitResourceMovementGroup(RootMovementGroup):
def __init__(self, movement, **kw): def __init__(self, movement, **kw):
......
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