l.s.f.s.MultiScopeHandler : class documentation

Part of lp.services.features.scopes View In Hierarchy

Known subclasses: lp.services.features.scopes.ScopesForScript, lp.services.features.scopes.ScopesFromRequest

A scope handler that combines multiple `BaseScope`s.

The ordering in which they're added is arbitrary, because precedence is
determined by the ordering of rules.
Method __init__ Undocumented
Method lookup Determine if scope_name applies.
Method _findMatchingHandlers Find any handlers that match scope_name.
def __init__(self, scopes):
def _findMatchingHandlers(self, scope_name):
Find any handlers that match scope_name.
def lookup(self, scope_name):
Determine if scope_name applies.

This method iterates over the configured scope handlers until it either finds one that claims the requested scope name matches, or the handlers are exhausted, in which case the scope name is not a match.

API Documentation for Launchpad, generated by pydoctor at 2019-08-18 00:00:05.