Part of lp.codehosting.safe_open View In Hierarchy
Known subclasses: lp.codehosting.safe_open.AcceptAnythingPolicy
Method | __init__ | Undocumented |
Method | shouldFollowReferences | Whether we traverse references when mirroring. |
Method | checkOneURL | Check the safety of the source URL. |
Method | transformFallbackLocation | See BranchOpenPolicy.transformFallbackLocation . |
Subclasses must override this method.
If we encounter a branch reference and this returns false, an error is raised.
Returns | A boolean to indicate whether to follow a branch reference. |
Subclasses must override this method.
Parameters | url | The source URL to check. |
Raises | BadUrl | subclasses are expected to raise this or a subclass when it finds a URL it deems to be unsafe. |
BranchOpenPolicy.transformFallbackLocation
.
This class is not used for testing our smarter stacking features so we just do the simplest thing: return the URL that would be used anyway and don't check it.