[orca/new-settings] Added method for creating dirs and uncommented the creation of the userPrefs directories
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Added method for creating dirs and uncommented the creation of the userPrefs directories
- Date: Mon, 13 Sep 2010 10:17:16 +0000 (UTC)
commit f4d81050b58fb1ffb673e0c1660a138f7113054e
Author: Juanje Ojeda <jojeda emergya es>
Date: Mon Sep 13 12:13:36 2010 +0200
Added method for creating dirs and uncommented the creation of the userPrefs directories
src/orca/backends/gconf_backend.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/backends/gconf_backend.py b/src/orca/backends/gconf_backend.py
index 7f40c19..cde045b 100644
--- a/src/orca/backends/gconf_backend.py
+++ b/src/orca/backends/gconf_backend.py
@@ -102,6 +102,14 @@ class OrcaPrefs():
if prefsDict:
self.options = self.prefsDict
+ def _createDir(self, dirname):
+ """Creates the given directory if it doesn't already exist.
+ """
+
+ try:
+ os.chdir(dirname)
+ except:
+ os.mkdir(dirname)
def gconf_load(self, path = None):
casts = {gconf.VALUE_BOOL: gconf.Value.get_bool,
@@ -905,7 +913,7 @@ class OrcaPrefs():
call.
"""
- #self._setupPreferencesDirs()
+ self._setupPreferencesDirs()
#self._writePreferencesPreamble(prefs)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]