l.s.f.s.PageScope(BaseScope) : class documentation

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

The current page ID.

Pageid scopes are written as 'pageid:' + the pageid to match. Pageids are treated as a namespace with : and # delimiters.

For example, the scope 'pageid:Foo' will be active on pages with pageids:
Foo Foo:Bar Foo#quux
Method __init__ Undocumented
Method lookup Is the given scope match the current pageid?
Static Method _pageid_to_namespace Return a list of namespace elements for pageid.
Method _request_pageid_namespace Undocumented

Inherited from BaseScope:

Method compiled_pattern The compiled scope matching regex. A small optimization.
def __init__(self, request):
Undocumented
def lookup(self, scope_name):
Is the given scope match the current pageid?
@staticmethod
def _pageid_to_namespace(pageid):
Return a list of namespace elements for pageid.
@cachedproperty
def _request_pageid_namespace(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-02-23 00:00:04.