]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Remove execute() from partition feature.
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 30 Oct 2015 07:57:07 +0000 (10:57 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 30 Oct 2015 13:42:52 +0000 (16:42 +0300)
src/PythonAPI/model/features/partition.py

index b37ef8ecde28123025dcae3e180f4a15324c640c..6fa638d7a84c49ca56793d8b37cfad9d04c2abea 100644 (file)
@@ -48,24 +48,14 @@ class Partition(Interface):
         self._fill_attribute(self._main_objects, main_objects)
         self._fill_attribute(self._tool_objects, tool_objects)
         self._fill_attribute(self._partition_combine, partition_combine)
-
-        self.__execute()
         pass
 
-    def __execute(self):
-        if self.areInputValid():
-            self.execute()
-        else:
-            raise Exception("Cannot execute Partition: %s" %
-                            self._feature.error())
-
     def setMainObjects(self, main_objects):
         """Modify base attribute of the feature.
 
         See __init__.
         """
         self._fill_attribute(self._main_objects, main_objects)
-        self.__execute()
         pass
 
     def setToolObjects(self, tool_objects):
@@ -74,7 +64,6 @@ class Partition(Interface):
         See __init__.
         """
         self._fill_attribute(self._tool_objects, tool_objects)
-        self.__execute()
         pass
 
     def setPartitionCombine(self, partition_combine):
@@ -83,5 +72,4 @@ class Partition(Interface):
         See __init__.
         """
         self._fill_attribute(self._partition_combine, partition_combine)
-        self.__execute()
         pass