[SQL-CVS] SQLObject/SQLObject Col.py,1.6,1.7
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-04-09 04:35:35
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv25006/SQLObject Modified Files: Col.py Log Message: Made foreign key column names slightly more permissive (you can use lower case "id") Index: Col.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/Col.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Col.py 8 Apr 2003 02:51:49 -0000 1.6 --- Col.py 9 Apr 2003 04:35:32 -0000 1.7 *************** *** 50,54 **** self.foreignKey = foreignKey if foreignKey: ! assert name.endswith('ID'), "All foreign key columns must end with 'ID' (%s)" % repr(name) self.foreignName = name[:-2] else: --- 50,54 ---- self.foreignKey = foreignKey if foreignKey: ! assert name.upper().endswith('ID'), "All foreign key columns must end with 'ID' (%s)" % repr(name) self.foreignName = name[:-2] else: |