add back in the old WebUI class and rename the import in ui.py so

compatibility isn't broken
This commit is contained in:
Damien Churchill 2009-04-20 20:11:31 +00:00
parent cd050bf8e7
commit 2f44899521
2 changed files with 8 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class UI:
ui = GtkUI(args) ui = GtkUI(args)
elif selected_ui == "web": elif selected_ui == "web":
log.info("Starting WebUI..") log.info("Starting WebUI..")
from deluge.ui.web.webui import WebUI from deluge.ui.web.web import WebUI
ui = WebUI(args) ui = WebUI(args)
elif selected_ui == "console": elif selected_ui == "console":
log.info("Starting ConsoleUI..") log.info("Starting ConsoleUI..")

View File

@ -23,9 +23,15 @@
# #
import server import server
from deluge.ui.ui import _UI from deluge.ui.ui import _UI, UI
from optparse import OptionGroup from optparse import OptionGroup
class WebUI(UI):
def __init__(self, args):
import server
deluge_web = server.DelugeWeb()
deluge_web.start()
class Web(_UI): class Web(_UI):
help = """Starts the Deluge web interface""" help = """Starts the Deluge web interface"""