2007-09-09 | paulb | raw annotate files changeset graph | [project @ 2007-09-09 16:47:51 by paulb] Upgraded to Sarissa 0.9.8.1, although this does not fix an apparent problem with Konqueror 3.5.6. Fixed code in commented-out section. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters.BaseHTTPRequestHandler import deploy 4 import QtConfigurator 5 6 # Get a simple Web site. 7 8 resource = QtConfigurator.get_resource("PyQtWeb") 9 10 # Special magic incantation. 11 12 print "Serving..." 13 deploy(resource, handle_errors=0) 14 15 # vim: tabstop=4 expandtab shiftwidth=4