l.a.b.l.LinkCheckerAPI(LaunchpadView) : class documentation

Part of lp.app.browser.linkchecker View In Hierarchy

Validates Launchpad shortcut links.

This class provides the endpoint of an Ajax call to .../+check-links. When invoked with a collection of links harvested from a page, it will check the validity of each one and send a response containing those that are invalid. Javascript on the page will set the style of invalid links to something appropriate.

This initial implementation supports processing links like the following:
/+code/foo/bar

The implementation can easily be extended to handle other forms by providing a method to handle the link type extracted from the json request.

Method __init__ Undocumented
Method __call__ Undocumented
Method check_branch_links Check links of the form /+code/foo/bar
Method check_bug_links Checks links of the form /bugs/100
Method _error_message Undocumented
def __init__(self, context, request):
Undocumented
def __call__(self):
Undocumented
def check_branch_links(self, links):
Check links of the form /+code/foo/bar
def check_bug_links(self, links):
Checks links of the form /bugs/100
def _error_message(self, ex):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.