Part of lp.services.features.scopes View In Hierarchy
Team ID scopes are written as 'team:' + the team name to match.
The scope 'team:launchpad-beta-users' will match members of the team 'launchpad-beta-users'.
The constructor takes a callable that returns the currently logged in person because Scopes are set up very early in the request publication process -- in particular, before authentication has happened.
Method | lookup | Is the given scope a team membership? |
Inherited from ScopeWithPerson:
Method | __init__ | Undocumented |
Method | person | Undocumented |
Inherited from BaseScope (via ScopeWithPerson):
Method | compiled_pattern | The compiled scope matching regex. A small optimization. |