X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPythonAddons%2Faddons_Features.py;h=d53755595a96af63074ba78b340932aa23cc9aee;hb=82a6c2130cd631399cf03f1e9da2caab182715e4;hp=90b23b9a9b171ded79eef7fc49ac7c3b3a5b7cdc;hpb=70d3f9177165dceb04f47c4660f3d32f23fe5911;p=modules%2Fshaper.git diff --git a/src/PythonAddons/addons_Features.py b/src/PythonAddons/addons_Features.py index 90b23b9a9..d53755595 100644 --- a/src/PythonAddons/addons_Features.py +++ b/src/PythonAddons/addons_Features.py @@ -6,14 +6,17 @@ from macros.box.feature import BoxFeature class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): + """Implementation of features plugin""" def __init__(self): + """Constructor""" ModelAPI.ModelAPI_Plugin.__init__(self) aSession = ModelAPI.ModelAPI_Session.get() aSession.registerPlugin(self) pass def createFeature(self, theFeatureID): + """Create a feature by its Id""" aFeature = None if theFeatureID == BoxFeature.ID(): @@ -24,6 +27,6 @@ class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): return aFeature - +### The plugin object plugin = PythonFeaturesPlugin() plugin.__disown__()