summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2015-10-15 21:43:29 -0600
committerBert JW Regeer <bertjw@regeer.org>2015-10-20 23:21:26 -0600
commit51ee346f982aaa325d22a80fd676ee2a21b985f5 (patch)
tree06110c842fc912e4a6688fa7424ac442fbcfb145
parentb3373e092f334944b094025d5b95a2652a995f8d (diff)
downloadpyramid-51ee346f982aaa325d22a80fd676ee2a21b985f5.tar.gz
pyramid-51ee346f982aaa325d22a80fd676ee2a21b985f5.tar.bz2
pyramid-51ee346f982aaa325d22a80fd676ee2a21b985f5.zip
PredicateList learns how to return the names
This is required for future changes, where we need the list of predicate names.
-rw-r--r--pyramid/config/util.py4
1 files changed, 4 insertions, 0 deletions
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