Webware, Web_Tools, Python Web Development Suite

Webware for Python V0.9
http://www.vsm.com.au/ftp/jfp/kits/
© Tous droits réservés 2003 Jean-François PIÉRONNE

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 very modular and easily 
extended.

Webware for Python is well proven and platform-independent. It is compatible with multiple 
web servers, database servers and operating systems.

Webware for Python on OpenVMS can run as a "classical" multi threaded application server or 
in a WASD CGIPlus environment (multi processes, multi accounts).

A demonstration is available from the Python for VMS site.
Software Requirements

   1. JFP Python 2.3.5  (See above)

Webware must be installed on an ODS-5 volume.

By default, the installation procedure installs Python in the SYS$COMMON:[WEBWARE090] directory. 
To install it in another directory, dev:[dir], use the /DESTINATION parameter of the PRODUCT 
command. In this case, Python will be installed in the dev:[dir.WEBWARE090] directory.

Installation

   1. Make the directory which holds the ZIP file your default directory
   2. Extract the PCSI kit from the ZIP archive.

$ UNZIP "-V" WEBWARE090-V0102-0-1

   3. Install Webware to your chosen destination.

$ PRODUCT INSTALL webware090  (default)

or ... 

$ PRODUCT INSTALL webware090 /DESTINATION=dev:[dir]

   4. Finally, run the DCL procedure STARTUP.COM.

(You might want to add this line to your SYSTARTUP_VMS.COM file.)

$ @dev:[dir]STARTUP

      The STARTUP.COM procedure just defined the logical WEBWARE090_ROOT and does not start the server.

Configuration
If you planned to use Webware in a WASD CGIPlus environment, view ther video Webware under WASD
else

   1. Choose an account to run the server
   2. Create an empty directory for example dev:[dir.demo] where you will deploy the server. Owner must 
      be the account choose to run the server.
   3. Create the server application and configuration files:

$ set default dev:[dir.demo]
$ python /webware090_root/bin/MakeAppWorkDir.py MyApp

      where MyApp is the directory, which will be created, where you can build your first application.
   4. Edit configuration files:

$ edit [.Configs]AppServer.config
$ edit [.Configs]Application.config

      In AppServer.config update variables Host, EnableAdapter, AdapterPort, EnableHTTP, HTTPPort.
      In Application.config update variables AdminPassword, you can optionally update others variables.

Start the server

   1. Create a procedure run_server.com which contains:

$ set proc/par=extended
$ @python_vms:setup
$ set default dev:[dir.demo]
$! environ variable host/hostname is used by webware in ...miscutils]funcs.py
$ HOST = f$trnlnm("TCPIP$INET_HOST","LNM$SYSTEM_TABLE",,"EXECUTIVE")
$ python Launch.py ThreadedAppServer

   2. Start the server using the previous created procedure.

