Author: damoxc
Revision: 5103
Log:
add back in the old WebUI class and rename the import in ui.py so
compatibility isn't broken
Diff:
Modified: trunk/deluge/ui/ui.py
===================================================================
--- trunk/deluge/ui/ui.py 2009-04-20 19:56:35 UTC (rev 5102)
+++ trunk/deluge/ui/ui.py 2009-04-20 20:11:31 UTC (rev 5103)
@@ -98,7 +98,7 @@
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..")
Modified: trunk/deluge/ui/web/web.py
===================================================================
--- trunk/deluge/ui/web/web.py 2009-04-20 19:56:35 UTC (rev 5102)
+++ trunk/deluge/ui/web/web.py 2009-04-20 20:11:31 UTC (rev 5103)
@@ -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"""
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---