doc tweak to make it clear validation happens on the prepared value

This commit is contained in:
Chris Withers
2011-05-24 18:17:40 +01:00
parent e96597db44
commit 7c206f1bf9

View File

@@ -107,11 +107,11 @@ missing on url values or to filter html provided by a rich text
editor. A preparer is not called during serialization, only during
deserialization.
The *validator* of a schema node is called after deserialization; it
makes sure the deserialized value matches a constraint. An example of
The *validator* of a schema node is called after deserialization and
preparation ; it makes sure the value matches a constraint. An example of
such a validator is provided in the schema above:
``validator=colander.Range(0, 200)``. A validator is not called after
serialization, only after deserialization.
schema node serialization, only after node deserialization.
The *default* of a schema node indicates the value to be serialized if
a value for the schema node is not found in the input data during