dabo Commit
Revision 4136
Date: 2008-06-14 13:09:17 -0700 (Sat, 14 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4136
Changed:
U trunk/dabo/dPref.py
Log:
Fixed a bug that would not return the proper subkeys with long key paths.
Diff:
Modified: trunk/dabo/dPref.py
===================================================================
--- trunk/dabo/dPref.py 2008-06-14 16:51:02 UTC (rev 4135)
+++ trunk/dabo/dPref.py 2008-06-14 20:09:17 UTC (rev 4136)
@@ -373,13 +373,12 @@
sql = "select ckey from daboprefs where ckey like ?"
crs.execute(sql, ("%s.%%" % key, ))
rs = crs.getDataSet()
- retList = [rec["ckey"].split(".")[1] for rec in rs
+ retList = [rec["ckey"].split(".")[keydots] for rec in rs
if len(rec["ckey"].split(".")) > 2]
tmp = {}
for itm in retList:
tmp[itm] = None
- ret = tmp.keys()
- return ret
+ return tmp.keys()
def getValue(self, key):
_______________________________________________
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]