l.r.s.p.f.Filter : class documentation

Part of lp.registry.scripts.productreleasefinder.filter View In Hierarchy

URL filter.

The filters argument is a sequence of filter patterns. Each filter pattern is an object with a match() method used to check if the pattern matches the URL.

Method __init__ Undocumented
Method check Check a URL against the filters.
Method isPossibleParent Check if any filters could match children of a URL.
def __init__(self, filters=(), log_parent=None):
Undocumented
def check(self, url):
Check a URL against the filters.

Checks each of the registered patterns against the given URL, and returns the 'key' attribute of the first pattern that matches.

def isPossibleParent(self, url):
Check if any filters could match children of a URL.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.