2 import PythonFeaturesPlugin_Box
4 class PythonFeaturesPlugin(ModelAPI_Plugin):
6 ModelAPI_Plugin.__init__(self)
9 def createFeature(self, theFeatureID):
10 if theFeatureID == PythonFeaturesPlugin_Box.ID():
11 return PythonFeaturesPlugin_Box()
13 raise StandardError("No such feature %s"%theFeatureID)
15 plugin = PythonFeaturesPlugin()
16 ModelAPI_Session_get().registerPlugin(plugin)