dabo Commit
Revision 4496
Date: 2008-09-01 11:35:05 -0700 (Mon, 01 Sep 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4496

Changed:
U   trunk/dabo/dPref.py

Log:
When calling getPrefs(), you can now indicate a key that is relative to the 
current pref by prefixing it with a period.


Diff:
Modified: trunk/dabo/dPref.py
===================================================================
--- trunk/dabo/dPref.py 2008-09-01 17:55:01 UTC (rev 4495)
+++ trunk/dabo/dPref.py 2008-09-01 18:35:05 UTC (rev 4496)
@@ -335,6 +335,9 @@
                crs = self._cursor
                if key is None:
                        key = self._getKey()
+               elif key.startswith("."):
+                       # It's relative to this key
+                       key = ".".join((self._getKey(), key[1:]))
                key = key.replace("_", r"\_")
                param = "%(key)s%%" % locals()
                sql = "select * from daboprefs where ckey like ? escape '\\' "




_______________________________________________
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]

Reply via email to