Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / PythonFeaturesPlugin / PythonFeaturesPlugin.py
index dc4219d11d91cf038268998b30f87653127fa066..ca671e1449df5c7d037c81d73b1bbe8d3e9d5b75 100644 (file)
@@ -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()
-    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()