1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/CGI/CookiesHandler.py Sat Apr 24 20:34:22 2004 +0000
1.3 @@ -0,0 +1,15 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +# NOTE: Path manipulation requires manual customisation.
1.7 +
1.8 +import sys
1.9 +sys.path.append("/home/paulb/Software/Python/WebStack")
1.10 +sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
1.11 +
1.12 +from WebStack.Adapters import CGI
1.13 +from Cookies import CookiesResource
1.14 +
1.15 +resource = CookiesResource()
1.16 +CGI.respond(resource)
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/CGI/SimpleHandler.py Sat Apr 24 20:34:22 2004 +0000
2.3 @@ -0,0 +1,15 @@
2.4 +#!/usr/bin/env python
2.5 +
2.6 +# NOTE: Path manipulation requires manual customisation.
2.7 +
2.8 +import sys
2.9 +sys.path.append("/home/paulb/Software/Python/WebStack")
2.10 +sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common")
2.11 +
2.12 +from WebStack.Adapters import CGI
2.13 +from Simple import SimpleResource
2.14 +
2.15 +resource = SimpleResource()
2.16 +CGI.respond(resource)
2.17 +
2.18 +# vim: tabstop=4 expandtab shiftwidth=4