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):
# play
a["ab"]=4
self.assertEqual(a.local_copy(),{"ab":4})
+ a.assign({"ab":5})
+ self.assertEqual(a.local_copy(),{"ab":5})
+ a.assign({"ab":4})
a["cd"]=[5]
self.assertEqual(a.local_copy(),{"ab":4,"cd":[5]})
a["cd"].append(77)