2005-10-02 | paulb | raw annotate files changeset graph | [project @ 2005-10-02 01:34:39 by paulb] Introduced usage of prepare_initialiser and init_resources for the document initialisation process, replacing prepare_transform and transform_resources. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters.Twisted import deploy 4 import Configurator 5 6 # Get a simple Web site. 7 8 resource = Configurator.get_site() 9 10 # Special magic incantation. 11 12 print "Serving..." 13 deploy(resource, handle_errors=0) 14 15 # vim: tabstop=4 expandtab shiftwidth=4