add a comment and remove one of the OLD_CONFIG_KEYS

This commit is contained in:
Damien Churchill 2009-09-24 15:56:42 +00:00
parent 5c5a0712b0
commit 51b15c78a8
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,7 @@ UI_CONFIG_KEYS = (
OLD_CONFIG_KEYS = (
"port", "enabled_plugins", "base", "sidebar_show_zero",
"sidebar_show_trackers", "show_keyword_search", "show_sidebar",
"cache_templates", "https"
"https"
)
def rpath(path):
@ -450,6 +450,8 @@ class DelugeWeb(component.Component):
super(DelugeWeb, self).__init__("DelugeWeb")
self.config = configmanager.ConfigManager("web.conf", CONFIG_DEFAULTS)
# Check to see if a configuration from the web interface prior to 1.2
# exists and convert it over.
if os.path.exists(configmanager.get_config_dir("webui06.conf")):
old_config = configmanager.ConfigManager("webui06.conf")
if old_config.config: