From: Anthony Geay Date: Wed, 7 Jun 2023 13:07:23 +0000 (+0200) Subject: WIP X-Git-Tag: emc2p_1.4.0-rc1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fagy%2Fedf27816_2;p=modules%2Fkernel.git WIP --- 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()