l.s.f.f.NullFeatureController(FeatureController) : class documentation

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

For use in testing: everything is turned off
Method __init__ Construct a new view of the features for a set of scopes.

Inherited from FeatureController:

Method getFlag Get the value of a specific flag.
Method currentScope The name of the scope of the matching rule with the highest
Method isInScope Undocumented
Method __getitem__ FeatureController can be indexed.
Method getAllFlags Return a dict of all active flags.
Method usedFlags Return dict of flags used in this controller so far.
Method usedScopes Return {scope: active} for scopes that have been used so far.
Method defaultFlagValue Return the flag's value in the default scope.
Method _checkFlag Undocumented
Method _currentValueAndScope Undocumented
Method _debugMessage Undocumented
Method _findCurrentScope Lookup method for self._current_scopes. See also currentScope().
Method _needRules Undocumented
def __init__(self):
Construct a new view of the features for a set of scopes.
Parametersscope_check_callbackGiven a scope name, says whether it's active or not.
rule_sourceInstance of StormFeatureRuleSource or similar.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.