- class glue.config.AutoLinkerRegistry[source]¶
Registry for auto-linking functions that given a data collection can suggest links.
The members property is a list of auto-linking plugins, each represented as a
(label, function)tuple. The
functionshould take a reference to the data collection.
This is provided so that registry instances can be used as decorators.
Add a new auto-linking function.
This is provided so that registry instances can be used as decorators. The decorators should add the decorated code object to the registry, and return the original function