diff options
| author | Chris McDonough <chrism@plope.com> | 2010-10-28 13:52:48 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-10-28 13:52:48 -0400 |
| commit | a62cc2264c2dda6a0588fddbc5712afea9d89837 (patch) | |
| tree | 82fbc7798b3fd7ec56023eb7d25a65ca3e99bd9c /docs/zcml | |
| parent | ecbf957db6c1efbc4c90852d3a62ca4df669f5f4 (diff) | |
| download | pyramid-a62cc2264c2dda6a0588fddbc5712afea9d89837.tar.gz pyramid-a62cc2264c2dda6a0588fddbc5712afea9d89837.tar.bz2 pyramid-a62cc2264c2dda6a0588fddbc5712afea9d89837.zip | |
merge static view bugfixes/features from bfg trunk
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 ~~~~~~~~ |
