From: spo Date: Tue, 27 Oct 2015 12:16:03 +0000 (+0300) Subject: Rename addExport() to exportToFile(). X-Git-Tag: V_2.1.0~206^2~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a571b94a202fdca18185a8371585d85c62ed6bb;p=modules%2Fshaper.git Rename addExport() to exportToFile(). --- diff --git a/src/PythonAPI/model/exchange/__init__.py b/src/PythonAPI/model/exchange/__init__.py index 756097b87..71b17bbea 100644 --- a/src/PythonAPI/model/exchange/__init__.py +++ b/src/PythonAPI/model/exchange/__init__.py @@ -1,4 +1,4 @@ """Package for Exchange plugin for the Parametric Geometry API of the Modeler. """ -from exchange import addImport, addExport \ No newline at end of file +from exchange import addImport, exportToFile \ No newline at end of file diff --git a/src/PythonAPI/model/exchange/exchange.py b/src/PythonAPI/model/exchange/exchange.py index c294bc4e4..9648b7d52 100644 --- a/src/PythonAPI/model/exchange/exchange.py +++ b/src/PythonAPI/model/exchange/exchange.py @@ -48,7 +48,7 @@ class Import(Interface): pass -def addExport(part, *args): +def exportToFile(part, *args): """Add an Export feature to the Part and return Export. Pass all args to Export __init__ function. diff --git a/src/PythonAPI/model/partset/part.py b/src/PythonAPI/model/partset/part.py index bcbd56087..50eb352b9 100644 --- a/src/PythonAPI/model/partset/part.py +++ b/src/PythonAPI/model/partset/part.py @@ -40,5 +40,3 @@ class Part(Interface): """Returns the Part document created by this feature.""" result_part = ModelAPI.modelAPI_ResultPart(self._feature.firstResult()) return result_part.partDoc() - -