XSLTools

examples/CGI/CandidateApp.py

569:809b377cff44
2007-04-12 paulb [project @ 2007-04-12 18:41:16 by paulb] Updated release information.
     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 Candidate    13     14 # Get a simple Web site.    15 # NOTE: Change the filesystem encoding if appropriate.    16     17 resource = Candidate.get_site("iso-8859-15")    18     19 # Special magic incantation.    20     21 deploy(resource, handle_errors=0)    22     23 # vim: tabstop=4 expandtab shiftwidth=4