Author: ianb
Date: 2004-07-09 12:40:20 -0400 (Fri, 09 Jul 2004)
New Revision: 159
Modified:
trunk/SQLObject/sqlobject/main.py
Log:
Made _idName *not* inherit (as it really shouldn't, especially when
the ID includes the table name).
Modified: trunk/SQLObject/sqlobject/main.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/SQLObject/sqlobject/main.py 2004-07-09 16:24:19 UTC (rev 158)
+++ trunk/SQLObject/sqlobject/main.py 2004-07-09 16:40:20 UTC (rev 159)
@@ -147,7 +147,7 @@
newClass._table =3D newClass._style.pythonClassToDBTable(cla=
ssName)
=20
# If _idName isn't given, use style default
- if not hasattr(newClass, '_idName'):
+ if not d.has_key('_idName'):
newClass._idName =3D newClass._style.idForTable(newClass._ta=
ble)
=20
# We use the magic "q" attribute for accessing lazy
|