StartupActionRegistry

class glue.config.StartupActionRegistry[source]

Bases: glue.config.DictRegistry

Methods Summary

__call__(name)
add(startup_name, startup_function) Add a startup function to the registry.

Methods Documentation

__call__(name)[source]
add(startup_name, startup_function)[source]

Add a startup function to the registry. This is a function that will get called once glue has been started and any data loaded, and can be used to set up specific layouts and create links.

Startup actions are triggered by either specifying comma-separated names of actions on the command-line:

glue --startup=mystartupaction

or by passing an iterable of startup action names to the startup keyword of GlueApplication.

The startup function will be given the session object and the data collection object.