diff demo.py @ 4602:19490d84802b

demo.py: Fix self-referencing names
author anatoly techtonik <techtonik@gmail.com>
date Mon, 09 Apr 2012 13:55:47 +0300
parents e04f4c060887
children 7a032013bb6a
line wrap: on
line diff
--- a/demo.py	Mon Apr 09 10:23:40 2012 +0300
+++ b/demo.py	Mon Apr 09 13:55:47 2012 +0300
@@ -105,11 +105,11 @@
     hostname, port = urlparse.urlparse(url)[1].split(':')
     port = int(port)
     success_message = '''Server running - connect to:
-    %s
+    %(url)s
 1. Log in as "demo"/"demo" or "admin"/"admin".
 2. Hit Control-C to stop the server.
-3. Re-start the server by running "roundup-demo" again.
-4. Re-initialise the server by running "roundup-demo nuke".
+3. Re-start the server by running "%(script)s" again.
+4. Re-initialise the server by running "%(script)s nuke".
 
 Demo tracker is set up to be accessed by localhost browser.  If you
 run demo on a server host, please stop the demo, open file
@@ -117,7 +117,7 @@
 option in section "[tracker]", save the file, then re-run the demo
 program. If you want to change backend types, you must use "nuke".
 
-''' % url
+''' % dict(url=url, script=sys.argv[0])
 
     # disable command line processing in roundup_server
     sys.argv = sys.argv[:1] + ['-p', str(port), 'demo=' + home]

Roundup Issue Tracker: http://roundup-tracker.org/