These are the predicate checkers that are included with repoze.what:
Predicate is the parent class of every predicate checker and its API is described below:
System Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 17)
autodoc can’t import/find class ‘Predicate’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 24)
autodoc can’t import/find class ‘is_user’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 26)
autodoc can’t import/find class ‘not_anonymous’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 28)
autodoc can’t import/find class ‘is_anonymous’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 30)
autodoc can’t import/find class ‘in_group’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 32)
autodoc can’t import/find class ‘in_all_groups’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 34)
autodoc can’t import/find class ‘in_any_group’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 36)
autodoc can’t import/find class ‘has_permission’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 38)
autodoc can’t import/find class ‘has_all_permissions’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 40)
autodoc can’t import/find class ‘has_any_permission’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 42)
autodoc can’t import/find class ‘Not’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathYou may create a compound predicate by aggregating single (or even compound) predicate checkers with the functions below:
System Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 51)
autodoc can’t import/find class ‘All’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 53)
autodoc can’t import/find class ‘Any’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathBut you can also nest compound predicates:
p = All(Any(is_month(4), is_month(10)), has_permission('release'))
Which may be translated as “Anyone granted the ‘release’ permission may release a version of Ubuntu, if and only if it’s April or October”.
System Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 67)
autodoc can’t import/find class ‘NotAuthorizedError’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathSystem Message: WARNING/2 (/builddir/build/BUILD/repoze.what-1.0.8/docs/source/Manual/Predicates/Builtin.rst, line 69)
autodoc can’t import/find class ‘PredicateError’, it reported error: “No module named what.predicates”,please check your spelling and sys.pathControlling access with predicates