From 51ee346f982aaa325d22a80fd676ee2a21b985f5 Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Thu, 15 Oct 2015 21:43:29 -0600 Subject: PredicateList learns how to return the names This is required for future changes, where we need the list of predicate names. --- pyramid/config/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyramid/config/util.py b/pyramid/config/util.py index 0fd9ef4a7..85ce826a4 100644 --- a/pyramid/config/util.py +++ b/pyramid/config/util.py @@ -115,6 +115,10 @@ class PredicateList(object): before=weighs_less_than, ) + def names(self): + # Return the list of valid predicate names. + return self.sorter.names + def make(self, config, **kw): # Given a configurator and a list of keywords, a predicate list is # computed. Elsewhere in the code, we evaluate predicates using a -- cgit v1.2.3