tailbone.progress

Progress Indicator

class tailbone.progress.SessionProgress(request, key, session_type=None, ws=False)[source]

Provides a session-based progress bar mechanism.

This class is only responsible for keeping the progress data current. It is the responsibility of some client-side AJAX (etc.) to consume the data for display to the user.

Parameters:

ws – If true, then websockets are assumed, and the progress will behave accordingly. The default is false, “traditional” behavior.

tailbone.progress.get_basic_session(config, request={}, **kwargs)[source]

Create/get a “basic” Beaker session object.

tailbone.progress.get_progress_session(request, key, **kwargs)[source]

Create/get a Beaker session object, to be used for progress.