Permalink
Browse files

Fixed RestructuredText of long package description.

  • Loading branch information...
1 parent f9acb8a commit 3ad7246e33eab8851fff33dfe94b981f4057d118 @mauritsvanrees mauritsvanrees committed Jan 4, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 README.rst
View
@@ -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::
@@ -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::
@@ -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::
@@ -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::
@@ -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::
@@ -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::

0 comments on commit 3ad7246

Please sign in to comment.