1 #!/usr/bin/env python 2 3 # NOTE: Path manipulation requires manual customisation. 4 5 import sys 6 #sys.path.append("/home/paulb/Software/Python/WebStack") 7 #sys.path.append("/home/paulb/Software/Python/XSLTools") 8 #sys.path.append("/home/paulb/Software/Python/XSLTools/examples/Common") 9 #sys.path.append("/home/paulb/Software/Python/libxml2dom") 10 11 from WebStack.Adapters.CGI import deploy 12 import VerySimpleWithOpenID 13 14 # Get a simple Web site. 15 16 host = "http://localhost" # or an absolute URL (without path) 17 secret_key = "this_must_be_secret" 18 deployed_at = "http://localhost/cgi/vsimple" # must match server configuration 19 20 resource = VerySimpleWithOpenID.get_site(host, secret_key, deployed_at=deployed_at) 21 22 # Special magic incantation. 23 24 deploy(resource, handle_errors=0) 25 26 # vim: tabstop=4 expandtab shiftwidth=4