Re: [SQLObject] On Postel's Law, or: why should SQLObject automatically coerce values on database re
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ma...> - 2005-01-06 10:20:00
|
On Thu, Jan 06, 2005 at 07:57:34AM -0200, Carlos Ribeiro wrote: > SQLObject should perform automatic coercion on all the data it fetches > from the database. There is a big misunderstanding between you and me. I have no objection for conversion from DB to Python. All my objections were about Python-to-DB conversion. If a column .age is the IntCol, I don't want to see the code atable.age = '1' The code must raise TypeError or InvalidField exception. Those who want such code in their programs will implemet the conversion themselves and take all responsibility for it. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |