From: spo Date: Fri, 30 Oct 2015 07:57:07 +0000 (+0300) Subject: Remove execute() from partition feature. X-Git-Tag: V_2.1.0~206^2~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c7e02a7a3ba0c5617a06afe3faa7f352c013624d;p=modules%2Fshaper.git Remove execute() from partition feature. --- diff --git a/src/PythonAPI/model/features/partition.py b/src/PythonAPI/model/features/partition.py index b37ef8ecd..6fa638d7a 100644 --- a/src/PythonAPI/model/features/partition.py +++ b/src/PythonAPI/model/features/partition.py @@ -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