l.c.safe_open : module documentation

Part of lp.codehosting

Safe branch opening.
Class BadUrl Tried to access a branch from a bad URL.
Class BranchReferenceForbidden Trying to mirror a branch reference and the branch type does not allow
Class BranchLoopError Encountered a branch cycle.
Class BranchOpenPolicy Policy on how to open branches.
Class BlacklistPolicy Branch policy that forbids certain URLs.
Class AcceptAnythingPolicy Accept anything, to make testing easier.
Class WhitelistPolicy Branch policy that only allows certain URLs.
Class SingleSchemePolicy Branch open policy that rejects URLs not on the given scheme.
Class SafeBranchOpener Safe branch opener.
Function safe_open Open the branch at url, only accessing URLs on allowed_scheme.
def safe_open(allowed_scheme, url, ignore_fallbacks=False):
Open the branch at url, only accessing URLs on allowed_scheme.
RaisesBadUrlAn attempt was made to open a URL that was not on allowed_scheme.
API Documentation for Launchpad, generated by pydoctor at 2018-11-18 00:00:05.