dabo Commit
Revision 3334
Date: 2007-08-26 06:49:21 -0700 (Sun, 26 Aug 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3334
Changed:
U trunk/dabo/dPref.py
Log:
Minor style change to the connection. The old way works, but passing properties
is the preferred method.
Diff:
Modified: trunk/dabo/dPref.py
===================================================================
--- trunk/dabo/dPref.py 2007-08-26 13:41:27 UTC (rev 3333)
+++ trunk/dabo/dPref.py 2007-08-26 13:49:21 UTC (rev 3334)
@@ -65,8 +65,8 @@
datetime.datetime: "datetime", self._noneType:
"none"}
if crs is None:
prefdir = utils.getUserAppDataDirectory(appName)
- self._cxn = dabo.db.dConnection(connectInfo={"dbType":
"SQLite",
- "database": os.path.join(prefdir,
"DaboPreferences.db")})
+ db = os.path.join(prefdir, "DaboPreferences.db")
+ self._cxn = dabo.db.dConnection(connectInfo={"DbType":
"SQLite", "Database": db})
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/dabo-dev/[EMAIL PROTECTED]