[SQL-CVS] r576 - trunk/SQLObject/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2005-02-08 16:47:18
|
Author: ianb Date: 2005-02-08 16:47:12 +0000 (Tue, 08 Feb 2005) New Revision: 576 Modified: trunk/SQLObject/sqlobject/styles.py Log: Make the base style functional by adding a missing method Modified: trunk/SQLObject/sqlobject/styles.py =================================================================== --- trunk/SQLObject/sqlobject/styles.py 2005-02-08 11:08:52 UTC (rev 575) +++ trunk/SQLObject/sqlobject/styles.py 2005-02-08 16:47:12 UTC (rev 576) @@ -58,6 +58,9 @@ # keys, you can't really change this style. return attr + "ID" + def tableReference(self, table): + return table + "_id" + class MixedCaseUnderscoreStyle(Style): """ |