l.s.f.s.BaseScope : class documentation

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

Known subclasses: lp.services.features.scopes.DefaultScope, lp.services.features.scopes.FixedScope, lp.services.features.scopes.PageScope, lp.services.features.scopes.ScopeWithPerson, lp.services.features.scopes.ScriptScope, lp.services.features.scopes.ServerScope, lp.services.features.tests.test_scopes.FakeScope

A base class for scope handlers.

The docstring of subclasses is used on the +feature-info page as documentation, so write them accordingly.

Method compiled_pattern The compiled scope matching regex. A small optimization.
Method lookup Returns true if the given scope name is "active".
@cachedproperty
def compiled_pattern(self):
The compiled scope matching regex. A small optimization.
def lookup(self, scope_name):
Returns true if the given scope name is "active".
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.