From 05199529612bf6fcbf2bbbd2618d46b9ecf66baa Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 7 Jun 2023 15:07:23 +0200 Subject: [PATCH] WIP --- src/Container/SALOME_PyNode.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Container/SALOME_PyNode.py b/src/Container/SALOME_PyNode.py index f02c2d0df..9f296abb9 100644 --- a/src/Container/SALOME_PyNode.py +++ b/src/Container/SALOME_PyNode.py @@ -245,6 +245,17 @@ def SpoolPickleObject( obj ): pickleProxy = pickle.dumps( proxyObj , pickle.HIGHEST_PROTOCOL ) return pickleProxy +def UnProxyObjectSimple( obj ): + if isinstance(obj,BigObjectOnDiskBase): + return obj.get() + elif isinstance( obj, list): + retObj = [] + for elt in obj: + retObj.append( UnProxyObjectSimple(elt) ) + return retObj + else: + return obj + def UnProxyObject( obj ): if isinstance(obj,BigObjectOnDiskBase): obj.doNotTouchFile() -- 2.39.2