Salome HOME
Deleted Study parameter mpa/23299
authormpa <mpa@opencascade.com>
Fri, 3 Feb 2017 13:16:28 +0000 (16:16 +0300)
committermpa <mpa@opencascade.com>
Fri, 3 Feb 2017 13:16:28 +0000 (16:16 +0300)
resources/ATOMGENCatalog.xml.in
src/ATOMGEN/ATOMGEN.py

index 5fbdf14c26c9dd210faff26579aa206ca247b65b..7d0efef1472babd85521e3f07daaef344485bedf 100644 (file)
@@ -39,7 +39,6 @@
                 <component-author>SALOME team</component-author>
                 <component-version>@SALOMEATOMGEN_VERSION@</component-version>
                 <component-comment>Sample Python-based component</component-comment>
-                <component-multistudy>1</component-multistudy>
                 <component-icone>ATOMGEN.png</component-icone>
                 <constraint>'linux' ~ OS</constraint>
        
index 0380de67946b1acfad485e8d48c62244211e4965..f72199cff97b43be3779508718c0bdd29a91b914 100644 (file)
@@ -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: