[SQL-CVS] r4118 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2010-03-03 17:51:18
|
Author: phd Date: 2010-03-03 10:51:12 -0700 (Wed, 03 Mar 2010) New Revision: 4118 Modified: SQLObject/trunk/sqlobject/col.py Log: Added from_python to TimeValidator, the same as to_python, to allow str => time conversion. Modified: SQLObject/trunk/sqlobject/col.py =================================================================== --- SQLObject/trunk/sqlobject/col.py 2010-03-03 17:48:17 UTC (rev 4117) +++ SQLObject/trunk/sqlobject/col.py 2010-03-03 17:51:12 UTC (rev 4118) @@ -1229,6 +1229,8 @@ value = value.time() return value + from_python = to_python + class SOTimeCol(SOCol): timeFormat = '%H:%M:%S' |