Skip to content

Commit

Permalink
Fixed RestructuredText of long package description.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Jan 4, 2012
1 parent f9acb8a commit 3ad7246
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.rst
Expand Up @@ -9,7 +9,7 @@ or applications build on top of the Plone framework.
===========================

a) Using decorator
******************
------------------

If you only need to allow HTTP POST requests you can use the *PostOnly*
checker::
Expand All @@ -25,7 +25,7 @@ This checker only operators on HTTP requests; other types of requests
are not checked.

b) Passing request to a function validator
******************************************
------------------------------------------

Simply::

Expand All @@ -46,7 +46,7 @@ attacker to predict those parameters by adding an extra authenticator which
can be verified.

Generating the token
********************
--------------------

To use the form authenticator you first need to insert it into your form.
This can be done using a simple TAL statement inside your form::
Expand All @@ -56,10 +56,10 @@ This can be done using a simple TAL statement inside your form::
this will produce a HTML input element with the authentication information.

Validating the token
********************
--------------------

a) ZCA way
----------
**********

Next you need to add logic somewhere to verify the authenticator. This
can be done using a call to the authenticator view. For example::
Expand All @@ -69,7 +69,7 @@ can be done using a call to the authenticator view. For example::
raise Unauthorized

b) Using decorator
------------------
******************

You can do the same thing more conveniently using the ``protect`` decorator::

Expand All @@ -81,7 +81,7 @@ You can do the same thing more conveniently using the ``protect`` decorator::
pass

c) Passing request to a function validator
------------------------------------------
******************************************

Or just::

Expand Down

0 comments on commit 3ad7246

Please sign in to comment.