On 1/13/11 7:32 AM, Ed Leafe wrote:
> On Jan 13, 2011, at 10:18 AM, Ricardo Araoz wrote:
>
>> Hi, AFAIK dabo's preferences are kept in a sqlite3 db. And I can set the
>> file's name using app.BasePrefKey = "PrefFileName"
>> Did this and everything works, but I can't find the preferences file in
>> my app's directory tree. Where is it supposed to be? Am I right that it
>> should be named after the BasePrefKey?
>
>       It's in ~/.dabo/DaboPreferences.db
>
>       There is not a separate file for each BasePrefKey; instead, the 
> BasePrefKey is, well, the base key in the preferences table. Preferences are 
> stored in a tree-like structure, and BasePrefKey simply creates a separate 
> "main" branch.

If you want DaboPreferences.db to be in your own application's appdata 
directory, 
then do this:

app.PreferenceManager = dabo.dPref(appName="My Application")

On Windows, the preference file will now be in the user's %appdata%/My 
Application 
directory.

On Mac and Linux, the pref file will be in the user's ~/.my_application 
directory.

Paul

_______________________________________________
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/[email protected]

Reply via email to