Warning
This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
galaxy.tool_util.toolbox.filters package
- class galaxy.tool_util.toolbox.filters.ToolFilterContext(*args, **kwargs)[source]
Bases:
ProtocolThe attribute surface that toolbox filters are allowed to read.
galaxy.tools.Toolimplements this protocol, and any lighter-weight stand-in a toolbox implementation hands to the filter layer must too. Admin / user-configured filter functions should only read fields documented here — it is the contract that lets the filter pass run against something cheaper than a fully-parsedTool.- allow_user_access(user, attempting_access: bool = True) bool[source]
Return
Trueifusermay see/run this tool.Toolimplements this directly (with subclass overrides for admin-only flavours likeDataManagerTool); implementations should answer from their own state so the filter layer never needs to reach throughcontext.trans.app.config.
- __init__(*args, **kwargs)
- class galaxy.tool_util.toolbox.filters.FilterFactory(toolbox)[source]
Bases:
objectAn instance of this class is responsible for filtering the list of tools presented to a given user in a given context.