On Feb 16, 2008, at 5:43 PM, Michael Hipp wrote:

> I take it the preferences are stored in a "special" database table for
> that purpose?

        Yep. See the code in the __init__() of dabo.dPref.

> Are there any docs on how to set this up and include it in an
> application? Or example code? The wiki doesn't seem to know anything
> about it.


        Admittedly the docs are scattered on this, but this page explains a  
lot about preference management in Dabo:

http://dabodev.com/wiki/PreferenceDialog

        It's actually easier than I had hoped it would be to save custom  
prefs. Every Dabo object has a 'PreferenceManager' property that  
references a preference object; you just set attributes on that  
object, and they are persisted between sessions.

        There is an alternative interface:

self.Application.setUserSetting("mysetting", "someValue)

        ...and then later you can retrieve that with:

self.Application.getUserSetting("mysetting")
==> "someValue"

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to