From 798b8b4d245cb67cef5f2a6172e10b20c80ddc89 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Wed, 18 Mar 2026 15:04:21 +0100 Subject: [PATCH] add missing method to interface --- src/plone/base/interfaces/recyclebin.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/plone/base/interfaces/recyclebin.py b/src/plone/base/interfaces/recyclebin.py index ec54cab..d3f7eb1 100644 --- a/src/plone/base/interfaces/recyclebin.py +++ b/src/plone/base/interfaces/recyclebin.py @@ -87,6 +87,19 @@ def restore_item(item_id, target_container=None): The restored object or None if restore failed """ + def restore_child_item(item_id, child_path, target_container): + """Restore a specific child from a recycled folder item. + + Args: + item_id: The recycle bin ID of the parent item. + child_path: The original path of the child (unique at any depth). + target_container: The container object where the child will be restored. + + Returns: + The restored object on success, or a dict with ``success: False`` + and an ``error`` key on failure. + """ + def purge_item(item_id): """Permanently delete an item