diff options
| author | Chris McDonough <chrism@plope.com> | 2012-08-16 10:26:32 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-08-16 10:26:32 -0400 |
| commit | 8c7b0f14b2c55e653bb0d4a18e3de299b7abe208 (patch) | |
| tree | 22635d4768befaac2b111af5da8ff248e8ef837b /CHANGES.txt | |
| parent | 1431f5a99812ac03c74767fe648cbe338bc86133 (diff) | |
| parent | 7401b8eeded5d2d0167edabbc9f720f8ae235359 (diff) | |
| download | pyramid-8c7b0f14b2c55e653bb0d4a18e3de299b7abe208.tar.gz pyramid-8c7b0f14b2c55e653bb0d4a18e3de299b7abe208.tar.bz2 pyramid-8c7b0f14b2c55e653bb0d4a18e3de299b7abe208.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'CHANGES.txt')
| -rw-r--r-- | CHANGES.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index e092b1545..f02925585 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -85,3 +85,18 @@ Features - When there is a predicate mismatch exception (seen when no view matches for a given request due to predicates not working), the exception now contains a textual description of the predicate which didn't match. + +- An ``add_permission`` directive method was added to the Configurator. This + directive registers a free-standing permission introspectable into the + Pyramid introspection system. Frameworks built atop Pyramid can thus use + the the ``permissions`` introspectable category data to build a + comprehensive list of permissions supported by a running system. Before + this method was added, permissions were already registered in this + introspectable category as a side effect of naming them in an ``add_view`` + call, this method just makes it possible to arrange for a permission to be + put into the ``permissions`` introspectable category without naming it + along with an associated view. Here's an example of usage of + ``add_permission``:: + + config = Configurator() + config.add_permission('view') |
