[SQL-CVS] r2556 - SQLObject/branches/0.7/docs
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2007-04-17 16:42:36
|
Author: phd
Date: 2007-04-17 10:42:33 -0600 (Tue, 17 Apr 2007)
New Revision: 2556
Modified:
SQLObject/branches/0.7/docs/SQLObject.txt
Log:
Applied the patch 1701949: documentation about 'validator' Col constructor option.
Modified: SQLObject/branches/0.7/docs/SQLObject.txt
===================================================================
--- SQLObject/branches/0.7/docs/SQLObject.txt 2007-04-17 16:33:44 UTC (rev 2555)
+++ SQLObject/branches/0.7/docs/SQLObject.txt 2007-04-17 16:42:33 UTC (rev 2556)
@@ -1044,7 +1044,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
~~~~~~~~~~~~
|