Commit 05a1db46 authored by Jérome Perrin's avatar Jérome Perrin

fix or remove some copy 'n paste docstrings.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10763 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae3bfa7b
...@@ -259,9 +259,7 @@ class OrderMovementGroup(RootMovementGroup): ...@@ -259,9 +259,7 @@ class OrderMovementGroup(RootMovementGroup):
allow_class(OrderMovementGroup) allow_class(OrderMovementGroup)
class CausalityMovementGroup(RootMovementGroup): class CausalityMovementGroup(RootMovementGroup):
""" Groups movement that comes from simulation movement that shares the """ TODO: docstring """
same explanation relation. For example, it groups in an Invoice
movements from the same Packing List. """
def __init__(self, movement, **kw): def __init__(self, movement, **kw):
RootMovementGroup.__init__(self, movement=movement, **kw) RootMovementGroup.__init__(self, movement=movement, **kw)
...@@ -298,10 +296,7 @@ class CausalityMovementGroup(RootMovementGroup): ...@@ -298,10 +296,7 @@ class CausalityMovementGroup(RootMovementGroup):
allow_class(CausalityMovementGroup) allow_class(CausalityMovementGroup)
class RootAppliedRuleCausalityMovementGroup(RootMovementGroup): class RootAppliedRuleCausalityMovementGroup(RootMovementGroup):
""" Groups movement that comes from simulation movement that shares the """ Group movement whose root apply rules have the same causality."""
same explanation relation. For example, it groups in an Invoice
movements from the same Packing List. """
def __init__(self, movement, **kw): def __init__(self, movement, **kw):
RootMovementGroup.__init__(self, movement=movement, **kw) RootMovementGroup.__init__(self, movement=movement, **kw)
explanation_relative_url = self._getExplanationRelativeUrl(movement) explanation_relative_url = self._getExplanationRelativeUrl(movement)
...@@ -313,7 +308,7 @@ class RootAppliedRuleCausalityMovementGroup(RootMovementGroup): ...@@ -313,7 +308,7 @@ class RootAppliedRuleCausalityMovementGroup(RootMovementGroup):
) )
def _getExplanationRelativeUrl(self, movement): def _getExplanationRelativeUrl(self, movement):
""" Get the order value for a movement """ """ TODO: docstring; method name is bad; variables names are bad """
root_applied_rule = movement.getRootAppliedRule() root_applied_rule = movement.getRootAppliedRule()
explanation_value = root_applied_rule.getCausalityValue() explanation_value = root_applied_rule.getCausalityValue()
explanation_relative_url = None explanation_relative_url = None
...@@ -330,10 +325,7 @@ allow_class(RootAppliedRuleCausalityMovementGroup) ...@@ -330,10 +325,7 @@ allow_class(RootAppliedRuleCausalityMovementGroup)
# Sale invoices transactions lines. We need to put accounting lines # Sale invoices transactions lines. We need to put accounting lines
# in the same invoices than invoice lines. # in the same invoices than invoice lines.
class ParentExplanationMovementGroup(RootMovementGroup): class ParentExplanationMovementGroup(RootMovementGroup):
""" Groups movement that comes from simulation movement that shares the """ TODO: docstring """
same explanation relation. For example, it groups in an Invoice
movements from the same Packing List. """
def __init__(self, movement, **kw): def __init__(self, movement, **kw):
RootMovementGroup.__init__(self, movement=movement, **kw) RootMovementGroup.__init__(self, movement=movement, **kw)
explanation_value = self._getParentExplanationValue(movement) explanation_value = self._getParentExplanationValue(movement)
...@@ -370,7 +362,7 @@ class PathMovementGroup(RootMovementGroup): ...@@ -370,7 +362,7 @@ class PathMovementGroup(RootMovementGroup):
allow_class(PathMovementGroup) allow_class(PathMovementGroup)
class ColourMovementGroup(RootMovementGroup): class ColourMovementGroup(RootMovementGroup):
""" Group movements that have the same source and the same destination.""" """ Group movements that have the same color category."""
def __init__(self, movement, **kw): def __init__(self, movement, **kw):
RootMovementGroup.__init__(self, movement=movement, **kw) RootMovementGroup.__init__(self, movement=movement, **kw)
self.colour = movement.getColour() self.colour = movement.getColour()
...@@ -445,7 +437,7 @@ class QuantitySignMovementGroup(RootMovementGroup): ...@@ -445,7 +437,7 @@ class QuantitySignMovementGroup(RootMovementGroup):
allow_class(QuantitySignMovementGroup) allow_class(QuantitySignMovementGroup)
class DateMovementGroup(RootMovementGroup): class DateMovementGroup(RootMovementGroup):
""" Group movements that have exactly the same dates. """
def __init__(self,movement,**kw): def __init__(self,movement,**kw):
RootMovementGroup.__init__(self, movement=movement, **kw) RootMovementGroup.__init__(self, movement=movement, **kw)
self.start_date = movement.getStartDate() self.start_date = movement.getStartDate()
...@@ -465,7 +457,7 @@ class DateMovementGroup(RootMovementGroup): ...@@ -465,7 +457,7 @@ class DateMovementGroup(RootMovementGroup):
allow_class(DateMovementGroup) allow_class(DateMovementGroup)
class CriterionMovementGroup(RootMovementGroup): class CriterionMovementGroup(RootMovementGroup):
def __init__(self,movement,**kw): def __init__(self,movement,**kw):
RootMovementGroup.__init__(self, movement=movement, **kw) RootMovementGroup.__init__(self, movement=movement, **kw)
if hasattr(movement, 'getGroupCriterion'): if hasattr(movement, 'getGroupCriterion'):
...@@ -484,7 +476,7 @@ class CriterionMovementGroup(RootMovementGroup): ...@@ -484,7 +476,7 @@ class CriterionMovementGroup(RootMovementGroup):
allow_class(CriterionMovementGroup) allow_class(CriterionMovementGroup)
class ResourceMovementGroup(RootMovementGroup): class ResourceMovementGroup(RootMovementGroup):
""" Group movements that have the same resource. """
def __init__(self, movement, **kw): def __init__(self, movement, **kw):
RootMovementGroup.__init__(self, movement=movement, **kw) RootMovementGroup.__init__(self, movement=movement, **kw)
self.resource = movement.getResource() self.resource = movement.getResource()
......
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