dabo Commit
Revision 7228
Date: 2012-08-21 14:04:57 -0700 (Tue, 21 Aug 2012)
Author: Nate
Trac: http://trac.dabodev.com/changeset/7228
Changed:
U trunk/dabo/db/dBackend.py
Log:
If you set the keep alive interval before creating the connection (like in the
constructor), the thread will throw a attribute error because the connection
object is none. Added logic to prevent that.
Diff:
Modified: trunk/dabo/db/dBackend.py
===================================================================
--- trunk/dabo/db/dBackend.py 2012-08-21 20:25:00 UTC (rev 7227)
+++ trunk/dabo/db/dBackend.py 2012-08-21 21:04:57 UTC (rev 7228)
@@ -590,6 +590,10 @@
def run(self):
kal = self.backendObj.KeepAliveInterval
app = self.backendObj.Application
+
+ while self.backendObj._connection is None:
+ time.sleep(5)
+
con = self.backendObj._connection
cur = con.cursor()
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]