# HG changeset patch # User paulb # Date 1082838862 0 # Node ID 7c2fd5f61d01ad36792a7eba06492bcf5134790a # Parent 663e2e70ca64005eb1793bb4ba87fcf3a820960b [project @ 2004-04-24 20:34:22 by paulb] Added CGI examples. diff -r 663e2e70ca64 -r 7c2fd5f61d01 examples/CGI/CookiesHandler.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/CGI/CookiesHandler.py Sat Apr 24 20:34:22 2004 +0000 @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +# NOTE: Path manipulation requires manual customisation. + +import sys +sys.path.append("/home/paulb/Software/Python/WebStack") +sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") + +from WebStack.Adapters import CGI +from Cookies import CookiesResource + +resource = CookiesResource() +CGI.respond(resource) + +# vim: tabstop=4 expandtab shiftwidth=4 diff -r 663e2e70ca64 -r 7c2fd5f61d01 examples/CGI/SimpleHandler.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/CGI/SimpleHandler.py Sat Apr 24 20:34:22 2004 +0000 @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +# NOTE: Path manipulation requires manual customisation. + +import sys +sys.path.append("/home/paulb/Software/Python/WebStack") +sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") + +from WebStack.Adapters import CGI +from Simple import SimpleResource + +resource = SimpleResource() +CGI.respond(resource) + +# vim: tabstop=4 expandtab shiftwidth=4