Commit eecb44df authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added API to build the MovementCollectionDiff

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30649 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 29b523ac
...@@ -46,12 +46,22 @@ class IMovementCollectionDiff(Interface): ...@@ -46,12 +46,22 @@ class IMovementCollectionDiff(Interface):
to be deleted. to be deleted.
""" """
def addDeletableMovement(movement):
"""
Add a deletable movement to the diff definition
"""
def getNewMovementList(): def getNewMovementList():
""" """
Returns a list temp movements which represent new Returns a list temp movements which represent new
movements to add to an existing IMovementCollection. movements to add to an existing IMovementCollection.
""" """
def addNewMovement(movement):
"""
Add a new movement to the diff definition
"""
def getUpdatableMovementList(): def getUpdatableMovementList():
""" """
Returns the list of movements which need Returns the list of movements which need
...@@ -64,4 +74,11 @@ class IMovementCollectionDiff(Interface): ...@@ -64,4 +74,11 @@ class IMovementCollectionDiff(Interface):
to update an existing movement or to to update an existing movement or to
create a new movement. create a new movement.
""" """
def addUpdatableMovement(movement, property_dict):
"""
Add an updatable movement to the diff definition
property_dict -- properties to update
"""
\ No newline at end of file
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