# HG changeset patch # User Steve Losh # Date 1276366665 14400 # Node ID 921222f48d5db5133e96ef9f3c036ec816d8e41d # Parent f541cc7321a98e9b2ed99ff57ae3ba4694c6e3e8 web: use --debug to turn on debug mode for the server diff -r f541cc7321a9 -r 921222f48d5d review/extension_ui.py --- a/review/extension_ui.py Sat Jun 12 00:33:05 2010 -0400 +++ b/review/extension_ui.py Sat Jun 12 14:17:45 2010 -0400 @@ -19,11 +19,8 @@ port = int(opts.pop('port')) import web_ui - web_ui.load_interface( - ui, repo, read_only=read_only, - address=address, port=port, - open=False - ) + web_ui.load_interface(ui, repo, read_only=read_only, + address=address, port=port, open=False) def _init_command(ui, repo, **opts): ui.note(messages.INIT_START) diff -r f541cc7321a9 -r 921222f48d5d review/messages.py --- a/review/messages.py Sat Jun 12 00:33:05 2010 -0400 +++ b/review/messages.py Sat Jun 12 14:17:45 2010 -0400 @@ -110,7 +110,7 @@ DELETE_SIGNOFF = """Remove sign off on changeset %s""" WEB_START = """\ -starting CherryPy web server +starting web server """ CHECK_SUCCESS = """\ diff -r f541cc7321a9 -r 921222f48d5d review/web_ui.py --- a/review/web_ui.py Sat Jun 12 00:33:05 2010 -0400 +++ b/review/web_ui.py Sat Jun 12 14:17:45 2010 -0400 @@ -132,7 +132,8 @@ return redirect('/') -def load_interface(ui, repo, read_only=False, open=False, address='127.0.0.1', port=8080): +def load_interface(ui, repo, read_only=False, open=False, + address='127.0.0.1', port=8080): if open: import webbrowser webbrowser.open('http://localhost:%d/' % port) @@ -141,5 +142,5 @@ datastore = api.ReviewDatastore(ui, repo) site_read_only = read_only - app.debug = True + app.debug = ui.debugflag app.run(host=address, port=port)