X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPythonFeaturesPlugin%2FPythonFeaturesPlugin.py;h=ca671e1449df5c7d037c81d73b1bbe8d3e9d5b75;hb=6f84fd29d85b783864cdbb3ac9fdd6a3ad3cbb7c;hp=4795eaf033032519414191338b30199cc52af178;hpb=acebef0bc5fb22dc9672e0046085b896e957af56;p=modules%2Fshaper.git diff --git a/src/PythonFeaturesPlugin/PythonFeaturesPlugin.py b/src/PythonFeaturesPlugin/PythonFeaturesPlugin.py index 4795eaf03..ca671e144 100644 --- a/src/PythonFeaturesPlugin/PythonFeaturesPlugin.py +++ b/src/PythonFeaturesPlugin/PythonFeaturesPlugin.py @@ -1,17 +1,18 @@ import ModelAPI from PythonFeaturesPlugin_Box import PythonFeaturesPlugin_Box + class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): - - def __init__(self): - ModelAPI.ModelAPI_Plugin.__init__(self) - pass - def createFeature(self, theFeatureID): - if theFeatureID == PythonFeaturesPlugin_Box.ID(): - return PythonFeaturesPlugin_Box().__disown__() - else: - raise StandardError("No such feature %s"%theFeatureID) + def __init__(self): + ModelAPI.ModelAPI_Plugin.__init__(self) + pass + + def createFeature(self, theFeatureID): + if theFeatureID == PythonFeaturesPlugin_Box.ID(): + return PythonFeaturesPlugin_Box().__disown__() + else: + raise StandardError("No such feature %s" % theFeatureID) plugin = PythonFeaturesPlugin() aSession = ModelAPI.ModelAPI_Session.get()