On 9/11/13 11:31 AM, Ricardo Aráoz wrote:
> I connect manually in order to be able to place the pref database inside my 
> app's
> directory structure.
> Is there another way of accomplishing this?

You can put it in \Users\<username>\AppData\Roaming\<your app name> easily:

class App(dApp):
    ...
    def initProperties(self):
        ...
        self.PreferenceManager = dPref(key="your app name", appName="your app 
name")
        ...

Putting it inside your app program directory probably is shooting yourself in 
the
foot and there isn't a framework helper for doing so. This is user-level 
preferences,
not program-level or system-level. For program-level preferences I keep a _prefs
table in the app's shared database and then get/save from there using my own 
custom
pref dialog (which also pulls some prefs from the dPref database).

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.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