Registry

- class Registry
Registry class used to declare and register a plug-in node.
Methods
register_node(class_name, base_class_name, ...)Declare a plug-in node.
- __init__(*args, **kwargs)
- register_node(class_name: unicode, base_class_name: unicode, factory: Factory, plug_desc: list(PlugDescriptor), ui_descriptor: unicode) None
Declare a plug-in node.
The plug-in must declare the plug-in nodes using this method.
- Parameters
class_name (unicode) – in The new class name
base_class_name (unicode) – in The parent class name, “Node” is the base class
factory (Factory) – in The factory function to allocate a node, provided by the plug-in
plug_desc (list(PlugDescriptor)) – in The plugs descriptor
ui_descriptor (unicode) – in A json string to describe the node user interface
register_node(class_name: unicode,base_class_name: unicode,plug_desc: list(PlugDescriptor),ui_descriptor: unicode) -> None
Declare a plug-in node.
The plug-in must declare the plug-in nodes using this method.
- Parameters
class_name (unicode) – in The new class name
base_class_name (unicode) – in The parent class name, “Node” is the base class
plug_desc (list(PlugDescriptor)) – in The plugs descriptor
ui_descriptor (unicode) – in A json string to describe the node user interface
register_node(class_name: unicode,base_class_name: unicode,factory: Factory,plug_desc: list(PlugDescriptor),ui_descriptor: unicode) -> None
Declare a plug-in node.
The plug-in must declare the plug-in nodes using this method.
- Parameters
class_name (unicode) – in The new class name
base_class_name (unicode) – in The parent class name, “Node” is the base class
factory (Factory) – in The factory function to allocate a node, provided by the plug-in
plug_desc (list(PlugDescriptor)) – in The plugs descriptor
ui_descriptor (unicode) – in A json string to describe the node user interface
register_node(class_name: unicode,base_class_name: unicode,plug_desc: list(PlugDescriptor),ui_descriptor: unicode) -> None
Declare a plug-in node.
The plug-in must declare the plug-in nodes using this method.
- Parameters
class_name (unicode) – in The new class name
base_class_name (unicode) – in The parent class name, “Node” is the base class
plug_desc (list(PlugDescriptor)) – in The plugs descriptor
ui_descriptor (unicode) – in A json string to describe the node user interface