I'm trying to use constraints on SQLObject columns, but apparently they are not enabled yet.
With this email I'm sending a little example. Basically a test expecting te output of de constraint function, but nothing is printed besides the final listing.
Reviewing the code of col.py I've found where is defined constraints member of SOCol but not the calling of the list of functions.
There is a way to enable constraints while setting columns? maybe manually?
Thanks.
--
Julio
from sqlobject import *
from sqlobject.constraints import BadValue
def escol(obj, col, value):
print obj
print col
print value
class T(SQLObject):
_connection="sqlite:///some/path/prueba.db"
nombre = StringCol(constraints=[escol])
T.createTable()
a=T(nombre="Something goes here!")
print list(T.select())
