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.BaseHTTPRequestHandler import deploy 4 import Candidate 5 6 # Get a simple Web site. 7 # NOTE: Change the filesystem encoding if appropriate. 8 9 resource = Candidate.get_site("iso-8859-15") 10 11 # Special magic incantation. 12 13 print "Serving..." 14 deploy(resource, handle_errors=0) 15 16 # vim: tabstop=4 expandtab shiftwidth=4