On Thu, Jul 15, 2010 at 07:58:08PM +0400, Oleg Broytman wrote: > I'm pleased to announce version 0.13.0b1, the first beta version of a new > upcoming release of branch 0.13 of SQLObject.
There a few major changes in the branch so it needs to have a longer beta period. > * Validators became stricter: StringCol and UnicodeCol now accept only str, > unicode or an instance of a class that implements __unicode__ (but not > __str__ because every object has a __str__ method); BoolCol accepts only > bool or int or an instance of a class that implements __nonzero__; IntCol > accepts int, long or an instance of a class that implements __int__ or > __long__; FloatCol accepts float, int, long or an instance of a class > that implements __float__, __int__ or __long__. I want to explain: with this I want to prevent things like class MyTable(SQLObject): name = StringCol() age = IntCol() flag = BoolCol() row = MyTable(name=10, age='42', flag={}) I understand this is a controversial change. I can put arguments on both sides, pro et contra. If there will be complaints I will reverse the decision. Oleg. -- Oleg Broytman http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss