Author: phd
Date: 2005-02-07 11:02:13 +0000 (Mon, 07 Feb 2005)
New Revision: 571
Modified:
home/phd/SQLObject/inheritance/sqlobject/inheritance.py
home/phd/SQLObject/inheritance/sqlobject/main.py
Log:
Fixed destroySelf() - removed inheritance-related code from SQLObject.
Modified: home/phd/SQLObject/inheritance/sqlobject/inheritance.py
===================================================================
--- home/phd/SQLObject/inheritance/sqlobject/inheritance.py 2005-02-07 10:43:44 UTC (rev 570)
+++ home/phd/SQLObject/inheritance/sqlobject/inheritance.py 2005-02-07 11:02:13 UTC (rev 571)
@@ -183,7 +183,6 @@
super(InheritableSQLObject, self)._create(id, **kw)
def destroySelf(self):
- # Kills this object. Kills it dead!
#DSM: If this object has parents, recursivly kill them
if hasattr(self, '_parent') and self._parent:
self._parent.destroySelf()
Modified: home/phd/SQLObject/inheritance/sqlobject/main.py
===================================================================
--- home/phd/SQLObject/inheritance/sqlobject/main.py 2005-02-07 10:43:44 UTC (rev 570)
+++ home/phd/SQLObject/inheritance/sqlobject/main.py 2005-02-07 11:02:13 UTC (rev 571)
@@ -1325,9 +1325,6 @@
def destroySelf(self):
# Kills this object. Kills it dead!
- #DSM: If this object has parents, recursivly kill them
- if hasattr(self, '_parent') and self._parent:
- self._parent.destroySelf()
depends = []
klass = self.__class__
depends = self._SO_depends()
|