Add utility functions for working with the default SSH storage backend.

Review Request #11008 — Created May 5, 2020 and submitted

Information

Review Board
release-3.0.x

Reviewers

This introduces set_ssh_storage_backend_path() and
get_ssh_storage_backend_path(), which are wrappers around the
ssh_storage_backend siteconfig setting. Right now, these don't do a
whole lot, but they give us a standard way for extensions to set a new
backend, and eventually can let us better apply this to the environment
for rbssh (which is not planned for 3.0.x, as it's a more involved
project).

Extensions will also be able to check for the existence of these
functions in order to determine whether to set the old
settings.RBSSH_STORAGE_BACKEND or to set the new key in siteconfig.

Tested these with a patch to Power Pack.

Summary ID
Add utility functions for working with the default SSH storage backend.
This introduces `set_ssh_storage_backend_path()` and `get_ssh_storage_backend_path()`, which are wrappers around the `ssh_storage_backend` siteconfig setting. Right now, these don't do a whole lot, but they give us a standard way for extensions to set a new backend, and eventually can let us better apply this to the environment for rbssh (which is not planned for 3.0.x, as it's a more involved project). Extensions will also be able to check for the existence of these functions in order to determine whether to set the old `settings.RBSSH_STORAGE_BACKEND` or to set the new key in siteconfig.
aa2326ab7f3658d821b9309d78cffe377790c29f
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (b0e630e)