lp:~zyga/checkbox/better-qualifiers
- Get this branch:
- bzr branch lp:~zyga/checkbox/better-qualifiers
Branch merges
- Daniel Manrique (community): Approve
-
Diff: 326 lines (+230/-7)2 files modifiedplainbox/plainbox/impl/secure/qualifiers.py (+129/-7)
plainbox/plainbox/impl/secure/test_qualifiers.py (+101/-0)
Related bugs
Related blueprints
Branch information
Recent revisions
- 2753. By Zygmunt Krynicki
-
plainbox:
secure: qualifiers: make WhiteList namespace aware This patch adds implicit_namespace to WhiteList initializer, the
WhiteList.from_string( ) and the WhiteList. from_file( ) methods. The initializer will now prepend the implicit namespace to all the
patterns that don't contain the double-colon namespace operator that
separates job namespace form job partial idSigned-off-by: Zygmunt Krynicki <email address hidden>
- 2752. By Zygmunt Krynicki
-
plainbox:
secure: qualifiers: add FieldQualifier This patch adds a generic SimpleQualifier subclass capable of applying
any IMatcher to any field from a job definition.Simple compositions of FieldQualifier, OperatorMatcher and PatternMatcher
can entirely replace all custom qualifiers currently in use.Signed-off-by: Zygmunt Krynicki <email address hidden>
- 2751. By Zygmunt Krynicki
-
plainbox:
secure: qualifiers: add PatternMatcher This simple IMatcher implementation uses regular expressions to
match a value to the built-in pattern. It can be used to replace
and generalize the RegExpJobQualifier (along with upcoming FieldQualifier)Signed-off-by: Zygmunt Krynicki <email address hidden>
- 2750. By Zygmunt Krynicki
-
plainbox:
secure: qualifiers: add OperatorMatcher This simple IMatcher implementation uses any binary operator,
from the standard operator module, to compare two values together.Signed-off-by: Zygmunt Krynicki <email address hidden>
- 2749. By Zygmunt Krynicki
-
plainbox:
secure: qualifiers: add IMatcher This patch adds a new interface for qualifier implementations. IMatcher
is a simple wrapper for a function returning a boolean. It is expected
that various kinds of matchers can be implemented for specific purposes
but they all need to follow this interface.Signed-off-by: Zygmunt Krynicki <email address hidden>
- 2748. By Brendan Donegan
-
"automatic merge by tarmac [r=sylvain-
pineau] [bug=][ author= brendan- donegan] " - 2744. By Zygmunt Krynicki
-
"automatic merge by tarmac [r=roadmr][bug=1236377,1236505,
1243610, 1254189, 1254191, 1255066, 1255085, 1265748, 1267794, 1273100] [author= zkrynicki] "
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:checkbox