From 4d0346094443e4dedfc276fa3ad1029d3bb1c5a9 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 9 Mar 2014 17:19:03 -0500 Subject: [PATCH] fixed startup message, thanks mweissen --- VERSION | 2 +- gluon/widget.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index 8347cfaa..2991a59f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.9.4-stable+timestamp.2014.03.09.08.54.17 +Version 2.9.4-stable+timestamp.2014.03.09.17.17.38 diff --git a/gluon/widget.py b/gluon/widget.py index 371d1147..7f29960b 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -1222,12 +1222,12 @@ end tell url = get_url(ip, proto=proto, port=port) if not options.nobanner: - print 'please visit:' - print '\t', url + message = '\nplease visit:\n\t%s\n' % url if sys.platform.startswith('win'): - print 'use "taskkill /f /pid %i" to shutdown the web2py server' % os.getpid() + message += 'use "taskkill /f /pid %i" to shutdown the web2py server\n\n' % os.getpid() else: - print 'use "kill -SIGTERM %i" to shutdown the web2py server' % os.getpid() + message += 'use "kill -SIGTERM %i" to shutdown the web2py server\n\n' % os.getpid() + print message # enhance linecache.getline (used by debugger) to look at the source file # if the line was not found (under py2exe & when file was modified)