Refactor notion of trash and delete.

- Trash a node now does a soft delete (move to trash container).
 - Delete a node now remove it from the storage (no undo).

Signed-off-by: jvelilla <javier.hector@gmail.com>
This commit is contained in:
2015-09-09 22:05:23 +02:00
parent 32a409b7e9
commit 62e74ea6cd
4 changed files with 19 additions and 18 deletions

View File

@@ -411,6 +411,7 @@ feature -- Change: Node
delete_node (a_node: CMS_NODE)
-- Delete `a_node'.
--! remove the node from the storage.
do
reset_error
if a_node.has_id then
@@ -429,7 +430,7 @@ feature -- Change: Node
trash_node (a_node: CMS_NODE)
-- Trash node `a_node'.
--! remove the node from the storage.
-- Soft delete
do
reset_error
node_storage.trash_node (a_node)