paulb@101 | 1 | #!/usr/bin/env python |
paulb@101 | 2 | |
paulb@101 | 3 | # NOTE: Path manipulation requires manual customisation. |
paulb@101 | 4 | |
paulb@101 | 5 | import sys |
paulb@101 | 6 | sys.path.append("/home/paulb/Software/Python/WebStack") |
paulb@101 | 7 | sys.path.append("/home/paulb/Software/Python/XSLTools") |
paulb@101 | 8 | sys.path.append("/home/paulb/Software/Python/XSLTools/examples/Common") |
paulb@101 | 9 | sys.path.append("/home/paulb/Software/Python/libxml2dom") |
paulb@101 | 10 | |
paulb@101 | 11 | from WebStack.Adapters.CGI import deploy |
paulb@101 | 12 | import Questionnaire |
paulb@101 | 13 | |
paulb@101 | 14 | # Get a simple Web site. |
paulb@101 | 15 | |
paulb@101 | 16 | resource = Questionnaire.get_site() |
paulb@101 | 17 | |
paulb@101 | 18 | # Special magic incantation. |
paulb@101 | 19 | |
paulb@101 | 20 | deploy(resource, handle_errors=0) |
paulb@101 | 21 | |
paulb@101 | 22 | # vim: tabstop=4 expandtab shiftwidth=4 |