1.1 --- a/tools/demo.py Sat May 24 15:21:53 2008 +0000
1.2 +++ b/tools/demo.py Sun Aug 24 20:51:10 2008 +0200
1.3 @@ -4,6 +4,11 @@
1.4
1.5 import os, sys
1.6
1.7 +# Configuration.
1.8 +
1.9 +app_url = "http://localhost:8080" # No trailing "/"!
1.10 +secret_key = "horses"
1.11 +
1.12 # Find out where WebStack's distribution directory is.
1.13
1.14 program = sys.argv[0]
1.15 @@ -19,7 +24,7 @@
1.16 sys.path.append(os.path.join(base, "examples", "Common"))
1.17
1.18 import DemoApp
1.19 -resource = DemoApp.get_site()
1.20 +resource = DemoApp.get_site(app_url, secret_key)
1.21
1.22 # Try and open the application in a Web browser.
1.23 # The preferred module is Paul's desktop module:
1.24 @@ -33,7 +38,7 @@
1.25 except ImportError:
1.26 import webbrowser as desktop
1.27
1.28 - desktop.open("http://localhost:8080")
1.29 + desktop.open(app_url)
1.30
1.31 # Special magic incantation to start the demo.
1.32