- class glue.config.StartupActionRegistry[source]¶
This is provided so that registry instances can be used as decorators.
Add a startup function to the registry.
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(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:
or by passing an iterable of startup action names to the
The startup function will be given the session object and the data collection object.