AutoLinkerRegistry#
- class glue.config.AutoLinkerRegistry#
Bases:
RegistryRegistry 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. Thefunctionshould take a reference to the data collection.Methods Summary
__call__(label)This is provided so that registry instances can be used as decorators.
add(label, function)Add a new auto-linking function.
Methods Documentation
- __call__(label)#
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
- add(label, function)#
Add a new auto-linking function.
- Parameters:
- labelstr
Short label for the plugin
- functionfunc
The plugin function