summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatural <natural>2007-01-07 06:09:14 +0000
committernatural <natural>2007-01-07 06:09:14 +0000
commitc61b941817107402d535b8cc6304e002ac4cc0e4 (patch)
treee76cfdcad078581a624043cc060e76b0bfa57ddd
parente89937e2cf235c1560bdb3a7add8b3701bd4bfd4 (diff)
downloadkberylsettings-c61b941817107402d535b8cc6304e002ac4cc0e4.tar.gz
kberylsettings-c61b941817107402d535b8cc6304e002ac4cc0e4.tar.bz2
Implemented profile import/export. Yay!
-rw-r--r--kberylsettings/main.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kberylsettings/main.py b/kberylsettings/main.py
index f28efe4..f6fe2f3 100644
--- a/kberylsettings/main.py
+++ b/kberylsettings/main.py
@@ -425,6 +425,7 @@ class KBerylSettings(KMainWindow):
filename = KFileDialog.getOpenFileName(self.startDir, '', None,
'Select Profile to Import')
if filename:
+ filename = str(filename)
self.context.Import(filename, True) # overwrite
self.emit(Signals.berylContextChanged, (self.context, ))
self.showMessage('Settings imported.')
@@ -437,7 +438,9 @@ class KBerylSettings(KMainWindow):
filename = KFileDialog.getSaveFileName(self.startDir, '', None,
'Select File to Export Profile')
if filename:
- print 'exporting file...', filename
+ filename = str(filename)
+ self.context.Export(filename)
+ self.showMessage('Settings exported to %s' % filename)
def onMenuBar(self):
""" toggle the visibility of the menu bar and the related menu text