From: spo Date: Fri, 30 Oct 2015 07:58:02 +0000 (+0300) Subject: Remove execute() from revolution feature. X-Git-Tag: V_2.1.0~206^2~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c998be1868a6c5ed9d7459d348eca41c2f8d09ee;p=modules%2Fshaper.git Remove execute() from revolution feature. --- diff --git a/src/PythonAPI/model/features/revolution.py b/src/PythonAPI/model/features/revolution.py index 02ff46738..c2eaaae58 100644 --- a/src/PythonAPI/model/features/revolution.py +++ b/src/PythonAPI/model/features/revolution.py @@ -78,8 +78,6 @@ class Revolution(Interface): "Revolution takes 5 or 7 arguments (%s given)" % (len(args) + 3) ) - - self.__execute() pass def __setBase(self, base): @@ -117,20 +115,12 @@ class Revolution(Interface): self._fill_attribute(self._from_offset, from_offset) pass - def __execute(self): - if self.areInputValid(): - self.execute() - else: - raise Exception("Cannot execute Revolution: %s" % - self._feature.error()) - def setBase(self, base): """Modify base attribute of the feature. See __init__. """ self.__setBase(base) - self.__execute() pass def setAxisObject(self, axis_object): @@ -139,7 +129,6 @@ class Revolution(Interface): See __init__. """ self.__setAxisObject(axis_object) - self.__execute() pass def setAngles(self, *args): @@ -148,7 +137,6 @@ class Revolution(Interface): See __init__. """ self.__createByAngles(*args) - self.__execute() pass def setPlanesAndOffsets(self, *args): @@ -157,5 +145,4 @@ class Revolution(Interface): See __init__. """ self.__createByPlanesAndOffsets(*args) - self.__execute() pass