# HG changeset patch # User paulb # Date 1123787482 0 # Node ID c90cc4f8e35dabe66bfdf5b274dbc493fd86ccab # Parent cda8db993363f891a75861e1347d7a2b0de2f113 [project @ 2005-08-11 19:11:22 by paulb] Added Twisted example. diff -r cda8db993363 -r c90cc4f8e35d examples/Twisted/ConfiguratorApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/Twisted/ConfiguratorApp.py Thu Aug 11 19:11:22 2005 +0000 @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +from WebStack.Adapters.Twisted import deploy +import Configurator + +# Get a simple Web site. + +resource = Configurator.get_site() + +# Special magic incantation. + +print "Serving..." +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4