nodify.registry.NodeClassRegistry
- class nodify.registry.NodeClassRegistry[source]
Bases:
object
Keeps track of the node classes that are defined.
This simple class just stores the classes in a list, but allows other registries to “subscribe” to it. This means that when a new class is added to the registry it will also be registered in the subscribed registries.
In this way, a user can implement custom behavior to register classes. This can be useful for example to build search indexes.
Methods
__init__
()register
(node_cls)subscribe
(registry)unsubscribe
(registry)