# HG changeset patch # User paulb # Date 1181503996 0 # Node ID de86ae31773086c37f793932a67fefea1f4431df # Parent 9a9108de141464205e6e3257c48f12fcd2029398 [project @ 2007-06-10 19:33:16 by paulb] Added the VerySimpleWithLogin example. diff -r 9a9108de1414 -r de86ae317730 examples/Common/DemoApp.py --- a/examples/Common/DemoApp.py Sun Jun 10 19:32:58 2007 +0000 +++ b/examples/Common/DemoApp.py Sun Jun 10 19:33:16 2007 +0000 @@ -20,6 +20,7 @@ import PEP241 import Recursive import VerySimple +import VerySimpleWithLogin # A very simple index page. @@ -51,6 +52,7 @@
  • A Python package repository user interface
  • A recursive template example
  • A very simple example
  • +
  • A very simple example requiring a login
  • You can run all of the examples independently, too. See the examples directory for the code.

    @@ -60,9 +62,12 @@ # Find out where our example document will be for the dictionary example. -def get_site(): +def get_site(host): - "Define the resource mapping." + """ + Define the resource mapping, using the server 'host' URL to initialise some + examples. + """ # Find a file for use with the Dictionary example. @@ -88,6 +93,7 @@ "pep241" : PEP241.get_site(), "recursive" : Recursive.get_site(), "verysimple" : VerySimple.get_site(), + "verysimplewithlogin" : VerySimpleWithLogin.get_site(host), "" : DemoResource(), })