[SQL-CVS] r889 - trunk/SQLObject/sqlobject/inheritance
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2005-08-04 08:05:45
|
Author: phd
Date: 2005-08-04 08:05:37 +0000 (Thu, 04 Aug 2005)
New Revision: 889
Modified:
trunk/SQLObject/sqlobject/inheritance/__init__.py
Log:
Applied a patch made by Evandro Vale Miquelito: pass the connection to the parentClass.
Modified: trunk/SQLObject/sqlobject/inheritance/__init__.py
===================================================================
--- trunk/SQLObject/sqlobject/inheritance/__init__.py 2005-08-04 03:49:10 UTC (rev 888)
+++ trunk/SQLObject/sqlobject/inheritance/__init__.py 2005-08-04 08:05:37 UTC (rev 889)
@@ -201,7 +201,7 @@
else:
new_kw[name] = value
kw = new_kw
- self._parent = parentClass(kw=parent_kw)
+ self._parent = parentClass(kw=parent_kw, connection=self._connection)
id = self._parent.id
super(InheritableSQLObject, self)._create(id, **kw)
|