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
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/examples/Twisted/PEP241App.py Tue Oct 04 21:19:47 2005 +0000
2.3 @@ -0,0 +1,15 @@
2.4 +#!/usr/bin/env python
2.5 +
2.6 +from WebStack.Adapters.Twisted import deploy
2.7 +import PEP241
2.8 +
2.9 +# Get a simple Web site.
2.10 +
2.11 +resource = PEP241.get_site()
2.12 +
2.13 +# Special magic incantation.
2.14 +
2.15 +print "Serving..."
2.16 +deploy(resource, handle_errors=0)
2.17 +
2.18 +# vim: tabstop=4 expandtab shiftwidth=4
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/examples/Twisted/QuestionnaireApp.py Tue Oct 04 21:19:47 2005 +0000
3.3 @@ -0,0 +1,15 @@
3.4 +#!/usr/bin/env python
3.5 +
3.6 +from WebStack.Adapters.Twisted import deploy
3.7 +import Questionnaire
3.8 +
3.9 +# Get a simple Web site.
3.10 +
3.11 +resource = Questionnaire.get_site()
3.12 +
3.13 +# Special magic incantation.
3.14 +
3.15 +print "Serving..."
3.16 +deploy(resource, handle_errors=0)
3.17 +
3.18 +# vim: tabstop=4 expandtab shiftwidth=4
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/examples/Twisted/VerySimpleApp.py Tue Oct 04 21:19:47 2005 +0000
4.3 @@ -0,0 +1,15 @@
4.4 +#!/usr/bin/env python
4.5 +
4.6 +from WebStack.Adapters.Twisted import deploy
4.7 +import VerySimple
4.8 +
4.9 +# Get a simple Web site.
4.10 +
4.11 +resource = VerySimple.get_site()
4.12 +
4.13 +# Special magic incantation.
4.14 +
4.15 +print "Serving..."
4.16 +deploy(resource, handle_errors=0)
4.17 +
4.18 +# vim: tabstop=4 expandtab shiftwidth=4