Author: ianb
Date: 2005-04-07 22:29:12 +0000 (Thu, 07 Apr 2005)
New Revision: 719
Modified:
trunk/SQLObject/sqlobject/main.py
Log:
We shouldn't overwrite the connection hub if we don't have a viable alternative connection
Modified: trunk/SQLObject/sqlobject/main.py
===================================================================
--- trunk/SQLObject/sqlobject/main.py 2005-04-07 07:22:55 UTC (rev 718)
+++ trunk/SQLObject/sqlobject/main.py 2005-04-07 22:29:12 UTC (rev 719)
@@ -450,7 +450,7 @@
if hasattr(mod, '__connection__'):
connection = mod.__connection__
- if connection or not hasattr(cls, '_connection'):
+ if connection and not hasattr(cls, '_connection'):
cls.setConnection(connection)
# We have to check if there are columns in the inherited
|