[SQL-CVS] SQLObject/SQLObject SQLObject.py,1.15,1.16
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-04-07 23:28:11
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv8871/SQLObject Modified Files: SQLObject.py Log Message: Assertion to avoid Col('id') Index: SQLObject.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/SQLObject.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** SQLObject.py 7 Apr 2003 19:48:41 -0000 1.15 --- SQLObject.py 7 Apr 2003 23:28:07 -0000 1.16 *************** *** 317,320 **** --- 317,321 ---- def addColumn(cls, column, changeSchema=False): name = column.name + assert name != 'id', "The 'id' column is implicit, and should not be defined as a column" cls._SO_columnDict[name] = column |