[SQL-CVS] SQLObject/SQLObject SQLObject.py,1.50,1.51
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-09-06 03:05:16
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv26427/SQLObject Modified Files: SQLObject.py Log Message: Applied fix for [ 793467 ] buglet in set() method, with patch supplied by John A. Barbuto (jbarbuto) Index: SQLObject.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/SQLObject.py,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** SQLObject.py 1 Aug 2003 01:19:34 -0000 1.50 --- SQLObject.py 6 Sep 2003 03:05:12 -0000 1.51 *************** *** 706,710 **** # old setattr() to change the value, since we can't # read the user's mind. We'll combine everything ! # else into a single UPDATE. toUpdate = {} for name, value in kw.items(): --- 706,710 ---- # old setattr() to change the value, since we can't # read the user's mind. We'll combine everything ! # else into a single UPDATE, if necessary. toUpdate = {} for name, value in kw.items(): *************** *** 716,720 **** setattr(self, name, value) ! self._connection._SO_update(self, [(self._SO_columnDict[name].dbName, value) for name, value in toUpdate.items()]) self._SO_writeLock.release() --- 716,721 ---- setattr(self, name, value) ! if toUpdate: ! self._connection._SO_update(self, [(self._SO_columnDict[name].dbName, value) for name, value in toUpdate.items()]) self._SO_writeLock.release() |