On Thu, Feb 14, 2008 at 10:40:08AM -0600, Christopher Singley wrote:
> I'll be happy to write a validator class for DecimalStringCol - that's easy,
> if I can pass it it size/precision.
When SQLObject instantiate a validator it can pass any initialization
values the validator wants. For a user-instantiate validator, though, it is
the user's responsibility to pass all necessary initialization.
Unfortunately, SQLObject doesn't pass the current column - only the
value and the SQLObject instance are passed. That, probably, should be
fixed.
> What I can't figure out is how to set
> the state for the validator.
You don't need to.
> Where in the code do these validators get
> called?
In main.py. Lookup to_python and from_python there.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss