I don't suppose you could give me a bit more of a hint could you? I've googled for validators and can't seem to find anything concrete on validators in SQLObject.
Would I have to write a validator for every single column? (I've got hundreds). Can I write something that automatically looks up the correct type (i'm only really concerned with int, string, and datetime) from the class definition and converts it if necessary? I'm sure other people must have done this, but I can't find anything on it. Thanks. Ed On 19/03/06, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > On Sun, Mar 19, 2006 at 02:44:32PM +0100, Ed Singleton wrote: > > Is there a convenient way to get SQLObject to convert all the data > > added to it to the right type for it's column types? For example, > > when inserting into a IntCol field, can it automatically call int() on > > the value being passed? > > By adding a validator to your columns. > > 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 xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > sqlobject-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ sqlobject-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
