1.1 --- a/examples/Common/DemoApp.py Sun Jun 10 19:32:58 2007 +0000
1.2 +++ b/examples/Common/DemoApp.py Sun Jun 10 19:33:16 2007 +0000
1.3 @@ -20,6 +20,7 @@
1.4 import PEP241
1.5 import Recursive
1.6 import VerySimple
1.7 +import VerySimpleWithLogin
1.8
1.9 # A very simple index page.
1.10
1.11 @@ -51,6 +52,7 @@
1.12 <li><a href="pep241">A Python package repository user interface</a></li>
1.13 <li><a href="recursive">A recursive template example</a></li>
1.14 <li><a href="verysimple">A very simple example</a></li>
1.15 + <li><a href="verysimplewithlogin">A very simple example requiring a login</a></li>
1.16 </ul>
1.17 <p>You can run all of the examples independently, too. See the
1.18 <code>examples</code> directory for the code.</p>
1.19 @@ -60,9 +62,12 @@
1.20
1.21 # Find out where our example document will be for the dictionary example.
1.22
1.23 -def get_site():
1.24 +def get_site(host):
1.25
1.26 - "Define the resource mapping."
1.27 + """
1.28 + Define the resource mapping, using the server 'host' URL to initialise some
1.29 + examples.
1.30 + """
1.31
1.32 # Find a file for use with the Dictionary example.
1.33
1.34 @@ -88,6 +93,7 @@
1.35 "pep241" : PEP241.get_site(),
1.36 "recursive" : Recursive.get_site(),
1.37 "verysimple" : VerySimple.get_site(),
1.38 + "verysimplewithlogin" : VerySimpleWithLogin.get_site(host),
1.39 "" : DemoResource(),
1.40 })
1.41