|
From: <sub...@co...> - 2007-04-17 16:44:35
|
Author: phd
Date: 2007-04-17 10:44:32 -0600 (Tue, 17 Apr 2007)
New Revision: 2559
Modified:
SQLObject/docs/SQLObject.txt
Log:
Applied the patch 1701949: documentation about 'validator' Col constructor option.
Modified: SQLObject/docs/SQLObject.txt
===================================================================
--- SQLObject/docs/SQLObject.txt 2007-04-17 16:44:19 UTC (rev 2558)
+++ SQLObject/docs/SQLObject.txt 2007-04-17 16:44:32 UTC (rev 2559)
@@ -1048,7 +1048,16 @@
You can use classes (defined below) for this, but if those don't
work it's sometimes easiest just to use `sqlType`. Only necessary
if SQLObject is creating your tables.
+`validator`:
+ formencode_-like validator_. Making long story short, this is
+ an object that provides ``to_python()`` and ``from_python()``
+ to validate *and* convert (adapt or cast) the values when they are
+ read/written from/to the database. You should see formencode_
+ validator_ documentation for more details.
+.. _formencode: http://formencode.org/
+.. _validator: http://formencode.org/Validator.html
+
Column Types
~~~~~~~~~~~~
|