From: mpa Date: Fri, 3 Feb 2017 13:16:28 +0000 (+0300) Subject: Deleted Study parameter X-Git-Tag: Before_python3_27062017^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmpa%2F23299;p=samples%2Fatomgen.git Deleted Study parameter --- diff --git a/resources/ATOMGENCatalog.xml.in b/resources/ATOMGENCatalog.xml.in index 5fbdf14..7d0efef 100644 --- a/resources/ATOMGENCatalog.xml.in +++ b/resources/ATOMGENCatalog.xml.in @@ -39,7 +39,6 @@ SALOME team @SALOMEATOMGEN_VERSION@ Sample Python-based component - 1 ATOMGEN.png 'linux' ~ OS diff --git a/src/ATOMGEN/ATOMGEN.py b/src/ATOMGEN/ATOMGEN.py index 0380de6..f72199c 100644 --- a/src/ATOMGEN/ATOMGEN.py +++ b/src/ATOMGEN/ATOMGEN.py @@ -98,7 +98,7 @@ class ATOMGEN( ATOMGEN_ORB__POA.ATOMGEN_Gen, global __entry2IOR__ __entry2IOR__.clear() import StringIO, pickle - study = component.GetStudy() + study = salome.myStudy self.study = study iter = study.NewChildIterator(component) data = [] @@ -152,11 +152,11 @@ class ATOMGEN( ATOMGEN_ORB__POA.ATOMGEN_Gen, return __entry2IOR__[persistentID] return "" - def Close( self, component ): + def Close( self ): """ Called when study is closed """ - study = component.GetStudy() + study = salome.myStudy if self.studyData: self.studyData = None if study == self.study: