Submodules module

class, user=None, history=None, workflow_building_mode=False, qualified_url_builder=None)[source]

Bases: galaxy.managers.context.ProvidesHistoryContext

Stripped down implementation of Galaxy web transaction god object for work request handling outside of web threads - uses mix-ins shared with GalaxyWebTransaction to provide app, user, and history context convenience methods - but nothing related to HTTP handling, mako views, etc….

Things that only need app shouldn’t be consuming trans - but there is a need for actions potentially tied to users and histories and hopefully this can define that stripped down interface providing access to user and history information - but not dealing with web request and response objects.

__init__(app, user=None, history=None, workflow_building_mode=False, qualified_url_builder=None)[source]

Initialize self. See help(type(self)) for accurate signature.

property app

Provide access to the Galaxy app object.

property qualified_url_builder

Provide access to fully qualified Galaxy URLs (if available).

property history

Provide access to the user’s current history model object.

Return type



Return the current user if logged in or None.


Set the current user.

property user

Return the current user if logged in or None.



Like WorkRequestContext, but provides access to galaxy session and session.


Initialize self. See help(type(self)) for accurate signature.

get_galaxy_session()[source] galaxy.managers.context.ProvidesHistoryContext, history: Optional[galaxy.model.History] = None, workflow_building_mode=False)[source]

Create a WorkContext for supplied context with potentially different history.

This provides semi-structured access to a transaction/work context with a supplied target history that is different from the user’s current history (which also might change during the request).