examples/Twisted/CandidateApp.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/examples/Twisted/CandidateApp.py Tue Oct 04 21:19:47 2005 +0000 1.3 @@ -0,0 +1,15 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +from WebStack.Adapters.Twisted import deploy 1.7 +import Candidate 1.8 + 1.9 +# Get a simple Web site. 1.10 + 1.11 +resource = Candidate.get_site() 1.12 + 1.13 +# Special magic incantation. 1.14 + 1.15 +print "Serving..." 1.16 +deploy(resource, handle_errors=0) 1.17 + 1.18 +# vim: tabstop=4 expandtab shiftwidth=4