# HG changeset patch # User paulb # Date 1128460787 0 # Node ID c7e9f53b6a7aacdf5a5cb470b19e9ce5496d253d # Parent 78746a239604a0da6986ffc29a23d49efb762de3 [project @ 2005-10-04 21:19:47 by paulb] Added examples. diff -r 78746a239604 -r c7e9f53b6a7a examples/Twisted/CandidateApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/Twisted/CandidateApp.py Tue Oct 04 21:19:47 2005 +0000 @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +from WebStack.Adapters.Twisted import deploy +import Candidate + +# Get a simple Web site. + +resource = Candidate.get_site() + +# Special magic incantation. + +print "Serving..." +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4 diff -r 78746a239604 -r c7e9f53b6a7a examples/Twisted/PEP241App.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/Twisted/PEP241App.py Tue Oct 04 21:19:47 2005 +0000 @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +from WebStack.Adapters.Twisted import deploy +import PEP241 + +# Get a simple Web site. + +resource = PEP241.get_site() + +# Special magic incantation. + +print "Serving..." +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4 diff -r 78746a239604 -r c7e9f53b6a7a examples/Twisted/QuestionnaireApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/Twisted/QuestionnaireApp.py Tue Oct 04 21:19:47 2005 +0000 @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +from WebStack.Adapters.Twisted import deploy +import Questionnaire + +# Get a simple Web site. + +resource = Questionnaire.get_site() + +# Special magic incantation. + +print "Serving..." +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4 diff -r 78746a239604 -r c7e9f53b6a7a examples/Twisted/VerySimpleApp.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/Twisted/VerySimpleApp.py Tue Oct 04 21:19:47 2005 +0000 @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +from WebStack.Adapters.Twisted import deploy +import VerySimple + +# Get a simple Web site. + +resource = VerySimple.get_site() + +# Special magic incantation. + +print "Serving..." +deploy(resource, handle_errors=0) + +# vim: tabstop=4 expandtab shiftwidth=4