From 371071b2d3a7a7c4f9fcd4d6fc5600830aba8ec5 Mon Sep 17 00:00:00 2001 From: Joe Dallago Date: Tue, 18 Sep 2012 08:29:32 +0000 Subject: [PATCH] Improved the docs a little bit. --- docs/basics.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/basics.rst b/docs/basics.rst index 7ddbc15..d3ad34e 100644 --- a/docs/basics.rst +++ b/docs/basics.rst @@ -105,7 +105,7 @@ deserialization but before validation; it prepares a deserialized value for validation. Examples would be to prepend schemes that may be missing on url values or to filter html provided by a rich text editor. A preparer is not called during serialization, only during -deserialization. You can also pass a Schema Node a list of preparers. +deserialization. You can also pass a schema node a list of preparers. The *validator* of a schema node is called after deserialization and preparation ; it makes sure the value matches a constraint. An example of @@ -443,8 +443,8 @@ __ http://pypi.python.org/pypi/htmllaundry/ preparer=htmllaundry.sanitize, validator=colander.Length(1)) -You can even specify multiple preparers to be run in order by passing -a list of functions to the 'preparer' kwarg, like so: +You can even specify multiple preparers to be run in order, by passing +a list of functions to the `preparer` kwarg, like so: .. code-block:: python :linenos: