1 Introduction
2 ------------
3
4 WebStack is a package which provides a common API for Python Web applications,
5 regardless of the underlying server or framework environment. It should be
6 possible with WebStack to design and implement an application and to choose a
7 deployment environment, without having to go back and rewrite large parts of
8 that application to work in the chosen environment or in other environments
9 (should the deployment requirements change after the application has been
10 written).
11
12 Framework Support
13 -----------------
14
15 Currently, BaseHTTPRequestHandler (via BaseHTTPServer in the standard
16 library), CGI, Jython/Java Servlet API, mod_python, Twisted, Webware and Zope
17 2 are supported. Each framework has its own set of strengths and weaknesses,
18 but the idea is that deployment concerns can be considered separately from the
19 implementation of application functionality. Consult the NOTES.txt files in
20 each framework's subdirectory of the docs directory for some notes on how
21 applications may be run in each environment.
22
23 Tested Frameworks
24 -----------------
25
26 BaseHTTPRequestHandler Python 2.2.2, Python 2.3.3
27 CGI Apache 2.0.44
28 Jython/Java Servlet API Jython 2.1, Java JDK 1.3.1_02, Tomcat 4.1.27 (Servlet 2.3)
29 mod_python 3.0.3 (3.1.3 for cookie support)
30 Twisted 1.0.5
31 Webware 0.8.1, CVS (2004-02-06)
32 Zope 2.7.2-0
33
34 New in WebStack 0.7 (Changes Since WebStack 0.6)
35 ------------------------------------------------
36
37 Fixed path information semantics.
38 Fixed file upload semantics.
39 Fixed content type handling (although some improvement remains).
40 Introduced Zope 2 support.
41
42 New in WebStack 0.6 (Changes Since WebStack 0.5)
43 ------------------------------------------------
44
45 Introduced Jython/Java Servlet API support.
46 Minor fixes to example applications and to BaseHTTPRequestHandler.
47
48 New in WebStack 0.5 (Changes Since WebStack 0.4)
49 ------------------------------------------------
50
51 Changed request body fields/parameters so that they are now represented using
52 Unicode objects rather than plain strings.
53 Introduced better support for Unicode in response streams.
54
55 New in WebStack 0.4 (Changes Since WebStack 0.3)
56 ------------------------------------------------
57
58 Added application definition of user identity, permitting alternative
59 authentication mechanisms.
60 Improved BaseHTTPRequestHandler and mod_python reliability around fields from
61 request bodies.
62 Provided stream and environment parameterisation in the CGI adapter.
63 Added LoginRedirect and Login examples.
64 Added get_path_without_query and fixed get_path behaviour.
65
66 New in WebStack 0.3 (Changes Since WebStack 0.2)
67 ------------------------------------------------
68
69 Added better header support for Webware (suggested by Ian Bicking).
70 Introduced CGI and Java Servlet support (the latter is currently
71 broken/unfinished).
72 Introduced support for cookies.
73
74 Future Work
75 -----------
76
77 Things to consider for future releases: improved cookie support, redirects,
78 access to shared resources and much better documentation.
79
80 Field access needs testing, especially for anything using the cgi.FieldStorage
81 class, and the way file uploads are exposed should be reviewed (currently the
82 meta-data is not exposed). The acquisition of fields from specific sources
83 should be made more strict - some frameworks (eg. mod_python) provide path
84 fields in the body fields dictionary.
85
86 Cookie objects need defining strictly, especially since the standard library
87 Cookie object behaves differently to mod_python (and possibly Webware) Cookie
88 objects. Moreover, the set_cookie_value method needs to provide access to the
89 usual cookie parameters as supported by the frameworks.
90
91 Unicode text written to the response stream needs to be suitably encoded
92 somewhere beneath each application. Better support for content type definition
93 could be provided.
94
95 Release Procedures
96 ------------------
97
98 Update the WebStack/__init__.py __version__ attribute.
99 Update the release notes (see above).
100 Check the setup.py file and ensure that all package directories are mentioned.
101 Tag, export, archive, upload.