From eecb44df2c6fd6e7b7a0273dd42051156f9850d7 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Mon, 16 Nov 2009 10:02:39 +0000 Subject: [PATCH] Added API to build the MovementCollectionDiff git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30649 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../ERP5/interfaces/movement_collection_diff.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/product/ERP5/interfaces/movement_collection_diff.py b/product/ERP5/interfaces/movement_collection_diff.py index afbb2dd125..04f7ef7a9b 100644 --- a/product/ERP5/interfaces/movement_collection_diff.py +++ b/product/ERP5/interfaces/movement_collection_diff.py @@ -46,12 +46,22 @@ class IMovementCollectionDiff(Interface): to be deleted. """ + def addDeletableMovement(movement): + """ + Add a deletable movement to the diff definition + """ + def getNewMovementList(): """ Returns a list temp movements which represent new movements to add to an existing IMovementCollection. """ + def addNewMovement(movement): + """ + Add a new movement to the diff definition + """ + def getUpdatableMovementList(): """ Returns the list of movements which need @@ -64,4 +74,11 @@ class IMovementCollectionDiff(Interface): to update an existing movement or to 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 -- 2.30.9