Webware for Python is a suite of Python packages and tools for developing object-oriented, web-based applications. The suite uses well known design patterns and includes a fast Application Server, Servlets, Python Server Pages (PSP), Object-Relational Mapping, Task Scheduling, Session Management, and many other features. Webware is modular and extensible.
The version of Webware currently in use at Texas Life is version 0.8. Information about Webware, including documentation and source code, is located at http://www.webwareforpython.org/.
Organization & Script Location
Each of the three web servers - WebProd, WebModel, and WebDevelop - has dedicated programs for running each individual web system. These programs are contained in the Context/ directory for each web server, /WebApp/webserver/Context/. Development is done in /WebApp/WebDevelop/Context/; model testing is done in /WebApp/WebModel/Context/; and production is in /WebApp/WebProd/Context/. Only WebDevelop is accessible by all programmers.
Each web system - eg, Agency, WebBill, etc - is contained in a sub-directory of Context/. The name of the sub-directory identifies which web system's files it contains; for example, /WebApp/webserver/Context/Agency/ contains all the files specifically for running the Agent Support pages. These directories also contain the .pyc file(s) which are created when a Python program is executed.
The Context/ directory itself contains files related to ALL web systems. Changes made to files there affect every web system. Because of this, files in the Context/ directory may not be modified by regular programmers. ANY changes to those files must be approved in advance and installed by the web system manager.
The Context/ Directory
This directory contains a number of files, some currently in use, others not. The two files of overriding importance to the web systems are TLPageV2.py and BuildV2.py.
TLPageV2.py is the customized Page object used by our web systems. It is the super-class for all web pages and should only contain classes and functions needed by more than one of our web systems. Its ancestor is the Webware Page object.
Classes and functions used by many pages solely within a...