diff options
| author | Ben Bangert <ben@groovie.org> | 2010-10-28 18:25:13 -0700 |
|---|---|---|
| committer | Ben Bangert <ben@groovie.org> | 2010-10-28 18:25:13 -0700 |
| commit | 6a9d6246c9e9fda507fa04b462c00509b73f676f (patch) | |
| tree | 0b8cfaddb2585a2456031aafa3fc287b40e59fb3 /docs/zcml | |
| parent | 6b49316f217a8fd72f8dac2abd7b7fcd8084e8bc (diff) | |
| parent | a62cc2264c2dda6a0588fddbc5712afea9d89837 (diff) | |
| download | pyramid-6a9d6246c9e9fda507fa04b462c00509b73f676f.tar.gz pyramid-6a9d6246c9e9fda507fa04b462c00509b73f676f.tar.bz2 pyramid-6a9d6246c9e9fda507fa04b462c00509b73f676f.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/zcml')
| -rw-r--r-- | docs/zcml/static.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/zcml/static.rst b/docs/zcml/static.rst index 6c1c5b6d3..815e332c8 100644 --- a/docs/zcml/static.rst +++ b/docs/zcml/static.rst @@ -29,6 +29,20 @@ Attributes ``Cache-Control`` headers, when any static file is served from this directive. This defaults to 3600 (5 minutes). Optional. +``permission`` + Used to specify the :term:`permission` required by a user to execute + this static view. This value defaults to the string + ``__no_permission_required__``. The ``__no_permission_required__`` + string is a special sentinel which indicates that, even if a + :term:`default permission` exists for the current application, the + static view should be renderered to completely anonymous users. + This default value is permissive because, in most web apps, static + resources seldom need protection from viewing. You should use this + option only if you register a static view which points at a + directory that contains resources which should be shown only if the + calling user has (according to the :term:`authorization policy`) a + particular permission. + Examples ~~~~~~~~ |
