[SQL-CVS] r4098 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2010-02-05 14:08:09
|
Author: phd Date: 2010-02-05 06:31:14 -0700 (Fri, 05 Feb 2010) New Revision: 4098 Modified: SQLObject/trunk/sqlobject/main.py Log: Merged revision 4096 from branch 0.11: a comment for the group of rich comparison methods. Modified: SQLObject/trunk/sqlobject/main.py =================================================================== --- SQLObject/trunk/sqlobject/main.py 2010-02-05 13:30:35 UTC (rev 4097) +++ SQLObject/trunk/sqlobject/main.py 2010-02-05 13:31:14 UTC (rev 4098) @@ -1650,6 +1650,9 @@ def tablesUsedImmediate(self): return [self.__class__.q] + + # Comparison + def __eq__(self, other): if self.__class__ is other.__class__: if self.id == other.id: |