]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
WIP agy/edf27816_2
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 7 Jun 2023 13:07:23 +0000 (15:07 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 7 Jun 2023 13:07:23 +0000 (15:07 +0200)
src/Container/SALOME_PyNode.py

index f02c2d0df95777e5449772387afc8f24f3b8bfa0..9f296abb9881056b83a0d339097b18165497c617 100644 (file)
@@ -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()