[SQL-CVS] r4096 - SQLObject/branches/0.11/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2010-02-05 13:29:24
|
Author: phd Date: 2010-02-05 06:29:15 -0700 (Fri, 05 Feb 2010) New Revision: 4096 Modified: SQLObject/branches/0.11/sqlobject/main.py Log: Added a comment for the group of rich comparison methods. Modified: SQLObject/branches/0.11/sqlobject/main.py =================================================================== --- SQLObject/branches/0.11/sqlobject/main.py 2010-02-03 22:27:42 UTC (rev 4095) +++ SQLObject/branches/0.11/sqlobject/main.py 2010-02-05 13:29:15 UTC (rev 4096) @@ -1654,6 +1654,9 @@ def tablesUsedImmediate(self): return [self.__class__.q] + + # Comparison + def __eq__(self, other): if self.__class__ is other.__class__: if self.id == other.id: |