summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-09-09 19:16:06 +0000
committerChris McDonough <chrism@agendaless.com>2010-09-09 19:16:06 +0000
commitf336c3637f381d7e13ada473c201e497bdb0e8a4 (patch)
tree271c8af5914ce3f996fb6245bd8ea0f4482f2fb4
parente25a70a7d1c2016eaeff9c630df9109e715bba3b (diff)
downloadpyramid-f336c3637f381d7e13ada473c201e497bdb0e8a4.tar.gz
pyramid-f336c3637f381d7e13ada473c201e497bdb0e8a4.tar.bz2
pyramid-f336c3637f381d7e13ada473c201e497bdb0e8a4.zip
typos and add to latex
-rw-r--r--docs/latexindex.rst1
-rw-r--r--docs/zcml/default_permission.rst16
2 files changed, 8 insertions, 9 deletions
diff --git a/docs/latexindex.rst b/docs/latexindex.rst
index ad8a5fa33..917e09bba 100644
--- a/docs/latexindex.rst
+++ b/docs/latexindex.rst
@@ -115,6 +115,7 @@ ZCML Directive Reference
zcml/adapter
zcml/authtktauthenticationpolicy
zcml/configure
+ zcml/default_permission
zcml/forbidden
zcml/include
zcml/notfound
diff --git a/docs/zcml/default_permission.rst b/docs/zcml/default_permission.rst
index 39edbacd4..2bac99158 100644
--- a/docs/zcml/default_permission.rst
+++ b/docs/zcml/default_permission.rst
@@ -8,7 +8,7 @@ configuration` registrations.
This directive accepts a single attribute ,``name``, which should be
used as the default permission string. An example of a permission
-string:``view``. Adding a default permission makes it unnecessary to
+string: ``view``. Adding a default permission makes it unnecessary to
protect each view configuration with an explicit permission, unless
your application policy requires some exception for a particular view.
@@ -18,21 +18,19 @@ permission will be executable by entirely anonymous users (any
authorization policy is ignored).
There can be only one default permission active at a time within an
-application, thus the default permission directive can only be used
-once in any particular set of ZCML.
+application, thus the ``default_permission`` directive can only be
+used once in any particular set of ZCML.
.. note: This API is new as of :mod:`repoze.bfg` version 1.3.
Attributes
~~~~~~~~~~
-``name`` must be a string representing a :term:`permission`,
+``name``
+ Must be a string representing a :term:`permission`,
e.g. ``view``.
- The ``secret`` is a string that will be used to encrypt the data
- stored by the cookie. It is required and has no default.
-
Example
~~~~~~~
@@ -50,7 +48,7 @@ Using the ``default_permission`` argument to the
:class:`repoze.bfg.configuration.Configurator` constructor can be used
to achieve the same purpose.
-Using the
+Using the
:meth:`repoze.bfg.configuration.Configurator.set_default_permission`
method can be used to achieve the same purpose when using imperative
configuration.
@@ -58,4 +56,4 @@ configuration.
See Also
~~~~~~~~
-See also :ref:``setting_a_default_permission``.
+See also :ref:`setting_a_default_permission`.