2010-02-24 | Paul Boddie | raw annotate files changeset graph | Added template:sort which controls the ordering of presented elements. Updated the example in order to demonstrate multiple-choice ordering using the translated choice labels. Updated various copyright headers. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters.Twisted import deploy 4 import VerySimpleWithOpenID 5 6 # Get a simple Web site. 7 8 host = "http://localhost:8080" # or an absolute URL (without path) 9 secret_key = "this_must_be_secret" 10 11 resource = VerySimpleWithOpenID.get_site(host, secret_key) 12 13 # Special magic incantation. 14 15 print "Serving..." 16 deploy(resource, handle_errors=0) 17 18 # vim: tabstop=4 expandtab shiftwidth=4