From: Oleg B. <ph...@ph...> - 2008-02-14 17:09:55
|
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/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |