plainbox.impl.providers.special – various special providers

Warning

THIS MODULE DOES NOT HAVE STABLE PUBLIC API

exception plainbox.impl.providers.special.CheckBoxNotFound[source]

Exception used to report that CheckBox cannot be located

class plainbox.impl.providers.special.CheckBoxSrcProvider[source]

A provider for checkbox jobs when used in development mode.

This provider is only likely to be used when developing checkbox inside a virtualenv environment. It assumes the particular layout of code and data (relative to the code directory) directories.

Unlike normal v1 providers it has two legacy quirks that should not be changed before we can stop using the old checkbox codebase.

  1. The location for provider-specific executables is ‘$base/scripts’.
  2. The location for whitelists is ‘$base/data/whitelists’.

It also has some quirks which might be revisited and dropped:

  1. To ensure that old checkbox library codebase can be imported (whitout installing or developing checkbox) it implements extra_PYTHONPATH.
  2. It has an utility method called exists() that makes one piece of code shorter (save the time it takes to create CheckBoxSrcProvider and catch-ignore ProviderNotFound).
static exists()[source]

Check if the source provider exists and can be actually used

extra_PYTHONPATH[source]

Return additional entry for PYTHONPATH

This entry is required for CheckBox scripts to import the correct CheckBox python libraries.

plainbox.impl.providers.special.get_stubbox_def()[source]

Get a Provider1Definition for stubbox

Previous topic

plainbox.impl.providers – providers package

Next topic

plainbox.impl.providers.v1 – Implementation of V1 provider

This Page