# HG changeset patch # User paulb # Date 1180741161 0 # Node ID 8a6cfc3767dcb7be863ac10a9948a3f14037bf0a # Parent 985aa6b688db78d4a8867e1935d92401396a164e [project @ 2007-06-01 23:39:21 by paulb] Added an example. diff -r 985aa6b688db -r 8a6cfc3767dc examples/BaseHTTPRequestHandler/VerySimpleWithLoginApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/BaseHTTPRequestHandler/VerySimpleWithLoginApp.py Fri Jun 01 23:39:21 2007 +0000 @@ -0,0 +1,16 @@ +#!/usr/bin/env python + +from WebStack.Adapters.BaseHTTPRequestHandler import deploy +import VerySimpleWithLogin + +# Get a simple Web site. + +host = "" # or an absolute URL +resource = VerySimpleWithLogin.get_site(host) + +# Special magic incantation. + +print "Serving..." +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4