Ejemplo n.º 1
0
 def __init__(self):
     KSimpleConfig.__init__(self, 'konsultantrc')
     skel = BaseSkel()
     data = skel.getdata()
     for section in skel.sections():
         self.setGroup(section)
         for opt in skel.options(section):
             if not self.hasKey(opt):
                 self.writeEntry(opt, data[section][opt])
     self.sync()
Ejemplo n.º 2
0
 def __init__(self, filename='dosbox-pykderc', ReadOnly=False):
     KSimpleConfig.__init__(self, filename, ReadOnly)
     sections = self.sections()
     if 'main' not in sections:
         self.setGroup('main')
         if not self.hasKey('installed_archives_path'):
             self.writeEntry('installed_archives_path', '$HOME/archives/dosbox-installed')
         if not self.hasKey('extras_archives_path'):
             self.writeEntry('extras_archives_path', '$HOME/archives/dosbox-extras')
         if not self.hasKey('main_dosbox_path'):
             self.writeEntry('main_dosbox_path', '$HOME/dosbox')
         if not self.hasKey('dosbox_binary'):
             self.writeEntry('dosbox_binary', 'dosbox')
         if not self.hasKey('tmp_parent_path'):
             self.writeEntry('tmp_parent_path', '/tmp/dosbox-area')
         if not self.hasKey('launch_weblink'):
             self.writeEntry('launch_weblink', 'kfmclient newTab "%s"')
         if not self.hasKey('text_editor'):
             self.writeEntry('text_editor', 'kate')
         if not self.hasKey('cdrive_is_main_dosbox_path'):
             self.writeEntry('cdrive_is_main_dosbox_path', False)
         self.sync()
     if 'filemanagement' not in sections:
         self.setGroup('filemanagement')
         if not self.hasKey('overwrite_extras_archives'):
             self.writeEntry('overwrite_extras_archives', True)
         if not self.hasKey('use_rdiff_backup'):
             self.writeEntry('use_rdiff_backup', True)
         if not self.hasKey('use_rsync'):
             self.writeEntry('use_rsync', True)
         self.sync()
     if 'mainwindow' not in sections:
         self.setGroup('mainwindow')
         if not self.hasKey('mainwindow_size'):
             self.writeEntry('mainwindow_size', '400, 600')
         if not self.hasKey('flat_tree_view'):
             self.writeEntry('flat_tree_view', 'flat')
         if not self.hasKey('name_title_view'):
             self.writeEntry('name_title_view', 'title')
         self.sync()
           
     for section in self.sections():
         print section, self.options(section)
Ejemplo n.º 3
0
    def __init__(self):
        KSimpleConfig.__init__(self, "pakitorc")
        self.packagerName = ""
        self.packagerEmail = ""
	self.rootPassword = ""
Ejemplo n.º 4
0
 def __init__(self):
     KSimpleConfig.__init__(self, "pakitorc")
     self.packagerName = ""
     self.packagerEmail = ""
     self.rootPassword = ""