2007-01-19 | paulb | file changeset files shortlog | [project @ 2007-01-19 22:22:28 by paulb] Improved namespace reproduction and added an XML output method. |
paulb@369 | 1 | #!/usr/bin/env python |
paulb@369 | 2 | |
paulb@369 | 3 | from WebStack.Adapters.BaseHTTPRequestHandler import deploy |
paulb@369 | 4 | import QtConfigurator |
paulb@369 | 5 | |
paulb@369 | 6 | # Get a simple Web site. |
paulb@369 | 7 | |
paulb@369 | 8 | resource = QtConfigurator.get_resource("PyQtWeb") |
paulb@369 | 9 | |
paulb@369 | 10 | # Special magic incantation. |
paulb@369 | 11 | |
paulb@369 | 12 | print "Serving..." |
paulb@369 | 13 | deploy(resource, handle_errors=0) |
paulb@369 | 14 | |
paulb@369 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |