class SessionConf(config.BaseConfig): """ Yum Extender current session Setting""" # show newest package version only for current session newest_only = config.BoolOption(True) # Clean orphan dependencies for this session clean_unused = config.BoolOption(False) # enabled repositories for this session enabled_repos = config.ListOption([]) clean_instonly = config.BoolOption(False)
class YumexConf(config.BaseConfig): """ Yum Extender Config Setting""" debug = config.BoolOption(False) autostart = config.BoolOption(False) color_install = config.Option('#4E9A06') color_update = config.Option('#CC0000') color_downgrade = config.Option('#C17D11') color_normal = config.Option('#000000') if check_dark_theme(): color_obsolete = config.Option('#3481A4') else: color_obsolete = config.Option('#3465A4') history_days = config.IntOption(180) newest_only = config.BoolOption(True) clean_unused = config.BoolOption(False) update_interval = config.IntOption(60) autocheck_updates = config.BoolOption(False) system_refresh = config.Option('2000-01-01 00:01') refresh_interval = config.IntOption(12) # headerbar is default if running gnome hb_default = is_gnome() headerbar = config.BoolOption(hb_default) search_default = config.CaselessSelectionOption(default='prefix', allowed=('prefix', 'keyword', 'fields', 'key')) search_fields = config.KeyListOption(['name', 'summary']) win_height = config.IntOption(700) win_width = config.IntOption(1150) info_paned = config.IntOption(450) win_maximized = config.BoolOption(False) auto_select_updates = config.BoolOption(False) repo_saved = config.BoolOption(False) repo_enabled = config.KeyListOption([]) archs = config.KeyListOption([]) protected = config.KeyListOption(['yumex-dnf', 'python3-dnfdaemon']) clean_instonly = config.BoolOption(True) installonly_limit = config.PositiveIntOption(3, range_min=2, names_of_0=["0", "<off>"])