diff options
| author | Blaise Laflamme <blaise@laflamme.org> | 2010-11-28 12:28:30 -0500 |
|---|---|---|
| committer | Blaise Laflamme <blaise@laflamme.org> | 2010-11-28 12:29:25 -0500 |
| commit | 16cd50c1a5beef98c3297d105c1ccffccb8872c5 (patch) | |
| tree | a42f0b082048c13916d48ca23719ec8d78074642 /docs/narr/security.rst | |
| parent | 099ac84208c019300174c0c8722cff7687bb43ca (diff) | |
| download | pyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.tar.gz pyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.tar.bz2 pyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.zip | |
Normalized narrative doc, code with linenos while text+bash don't
Diffstat (limited to 'docs/narr/security.rst')
| -rw-r--r-- | docs/narr/security.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst index 782dbffb1..2c696772a 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -436,6 +436,7 @@ authorization policy is in effect might look like so: the following: .. code-block:: python + :linenos: from pyramid.security import ALL_PERMISSIONS __acl__ = [ (Deny, Everyone, ALL_PERMISSIONS) ] @@ -512,7 +513,8 @@ This behavior can also be turned on in the application ``.ini`` file by setting the ``debug_authorization`` key to ``true`` within the application's configuration section, e.g.: -.. code-block:: guess +.. code-block:: ini + :linenos: [app:main] use = egg:MyProject#app @@ -555,6 +557,7 @@ authenticate. Doing so is a matter of creating an instance of something that implements the following interface: .. code-block:: python + :linenos: class AuthenticationPolicy(object): """ An object representing a Pyramid authentication policy. """ @@ -610,6 +613,7 @@ matter of creating an instance of an object that implements the following interface: .. code-block:: python + :linenos: class IAuthorizationPolicy(object): """ An object representing a Pyramid authorization policy. """ |
