ViewerToolRegistry

class glue.config.ViewerToolRegistry[source]

Bases: glue.config.DictRegistry

Methods Summary

__call__(self, tool_cls)

This is provided so that registry instances can be used as decorators.

add(self, tool_cls)

Add a tool class to the registry.

Methods Documentation

__call__(self, tool_cls)[source]

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(self, tool_cls)[source]

Add a tool class to the registry. The the tool_id attribute on the tool_cls should be set, and is used by the viewers to indicate which tools they want to