From 2f448995210ce8afc7360c82058c241b1787efec Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 20 Apr 2009 20:11:31 +0000 Subject: [PATCH] add back in the old WebUI class and rename the import in ui.py so compatibility isn't broken --- deluge/ui/ui.py | 2 +- deluge/ui/web/web.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/deluge/ui/ui.py b/deluge/ui/ui.py index fdf929ab8..e52530dad 100644 --- a/deluge/ui/ui.py +++ b/deluge/ui/ui.py @@ -98,7 +98,7 @@ class UI: ui = GtkUI(args) elif selected_ui == "web": log.info("Starting WebUI..") - from deluge.ui.web.webui import WebUI + from deluge.ui.web.web import WebUI ui = WebUI(args) elif selected_ui == "console": log.info("Starting ConsoleUI..") diff --git a/deluge/ui/web/web.py b/deluge/ui/web/web.py index 2e71a6b6e..6183595eb 100644 --- a/deluge/ui/web/web.py +++ b/deluge/ui/web/web.py @@ -23,9 +23,15 @@ # import server -from deluge.ui.ui import _UI +from deluge.ui.ui import _UI, UI from optparse import OptionGroup +class WebUI(UI): + def __init__(self, args): + import server + deluge_web = server.DelugeWeb() + deluge_web.start() + class Web(_UI): help = """Starts the Deluge web interface"""