Salome HOME
add method NameChanged to update title name
[modules/kernel.git] / src / SALOMESDS / SalomeSDSClt.py
index 440a70c8f3854493cfb2b90b6ae1ce8f999f5c20..9971211de54c5c88997d3e9f534940a07fa11813 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -89,9 +89,10 @@ class WrappedType(SALOMEWrappedStdType.WrappedType):
         return (self._wrapped_type,(self.local_copy(),))
 
     def assign(self,elt):
-        assert(isinstance(self._var_ptr,SALOME._objref_PickelizedPyObjRdWrServer))
+        ptrCorba=self._var_ptr.ptr()
+        assert(isinstance(ptrCorba,SALOME._objref_PickelizedPyObjRdWrServer))
         st=cPickle.dumps(elt,cPickle.HIGHEST_PROTOCOL)
-        self._var_ptr.setSerializedContent(st)
+        ptrCorba.setSerializedContent(st)
         pass
 
     def __del__(self):
@@ -144,7 +145,7 @@ class List(WrappedType,SALOMEWrappedStdType.List):
     def sort(self,*args):
         ret=Caller(self._var_ptr,"sort")
         return ret(*args)
-    
+    # work on local copy
     def count(self,*args):
         return self.local_copy().count(*args)