dabo Commit
Revision 6678
Date: 2011-07-09 03:22:32 -0700 (Sat, 09 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6678
Changed:
U trunk/dabo/dPref.py
Log:
Change that makes the cxn parameter independent from crs parameter.
Diff:
Modified: trunk/dabo/dPref.py
===================================================================
--- trunk/dabo/dPref.py 2011-07-09 00:10:34 UTC (rev 6677)
+++ trunk/dabo/dPref.py 2011-07-09 10:22:32 UTC (rev 6678)
@@ -76,8 +76,11 @@
# chdir() accordingly)..
prefdir = os.getcwd()
db = os.path.join(prefdir, "DaboPreferences.db")
- self._cxn = dabo.db.dConnection(connectInfo={"DbType":
"SQLite", "Database": db},
- forceCreate=True)
+ if cxn:
+ self._cxn = cxn
+ else:
+ self._cxn =
dabo.db.dConnection(connectInfo={"DbType": "SQLite", "Database": db},
+ forceCreate=True)
self._cursor = self._cxn.getDaboCursor()
self._cursor.IsPrefCursor = True
# Make sure that the table exists
_______________________________________________
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]