middleware Package

middleware Package

WSGI Middleware.

hg Module

Middle-ware for handling hg authentication for users pushing change sets to local repositories.

class galaxy.webapps.tool_shed.framework.middleware.hg.Hg(app, config)[source]

Bases: object

repository_tag_is_valid(filename, line)[source]

Checks changes made to <repository> tags in a dependency definition file being pushed to the Tool Shed from the command line to ensure that all required attributes exist.

repository_tags_are_valid(filename, change_list)[source]

Make sure the any complex repository dependency definitions contain valid <repository> tags when pushing changes to the tool shed on the command line.

remoteuser Module

Middleware for handling $REMOTE_USER if use_remote_user is enabled.

class galaxy.webapps.tool_shed.framework.middleware.remoteuser.RemoteUser(app, maildomain=None, display_servers=None, admin_users=None, remote_user_secret_header=None)[source]

Bases: object

error(start_response, title='Access denied', message='Contact your local Galaxy tool shed administrator.')[source]