From 6163bb86efdbf59d37420685c1580ec74f8f7a43 Mon Sep 17 00:00:00 2001 From: mpa Date: Fri, 3 Feb 2017 16:16:28 +0300 Subject: [PATCH] Deleted Study parameter --- resources/ATOMGENCatalog.xml.in | 1 - src/ATOMGEN/ATOMGEN.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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: -- 2.39.2