0Webware, Web_Tools, Python Web Development SuiteWebware for Python V0.9#http://www.vsm.com.au/ftp/jfp/kits/2© 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, Vweb-based applications. The suite uses well known design patterns and includes a fast YApplication 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 4web 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.aBy 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 Vcommand. In this case, Python will be installed in the dev:[dir.WEBWARE090] directory. InstallationH 1. Make the directory which holds the ZIP file your default directory0 2. Extract the PCSI kit from the ZIP archive.!$ UNZIP "-V" WEBWARE090-V0102-0-11 3. Install Webware to your chosen destination.'$ PRODUCT INSTALL webware090 (default)or ... 3$ PRODUCT INSTALL webware090 /DESTINATION=dev:[dir]1 4. Finally, run the DCL procedure STARTUP.COM.A(You might want to add this line to your SYSTARTUP_VMS.COM file.)$ @dev:[dir]STARTUPg 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 WASDelse) 1. Choose an account to run the serverh 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]5$ python /webware090_root/bin/MakeAppWorkDir.py MyAppf 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.configb In AppServer.config update variables Host, EnableAdapter, AdapterPort, EnableHTTP, HTTPPort.g In Application.config update variables AdminPassword, you can optionally update others variables.Start the server7 1. Create a procedure run_server.com which contains:$ set proc/par=extended$ @python_vms:setup$ set default dev:[dir.demo]M$! environ variable host/hostname is used by webware in ...miscutils]funcs.pyD$ HOST = f$trnlnm("TCPIP$INET_HOST","LNM$SYSTEM_TABLE",,"EXECUTIVE")$$ python Launch.py ThreadedAppServer< 2. Start the server using the previous created procedure.