For busy readers

If a standard Python environment is working on your computer, go easy from Python Script Folder easy_install on. Then you create a Zope instance:

D:\data\virtpy\Scripts>easy_install Products.ZMS


Installation in Detail

ZMS is a Python software, so be on the computer first Python to be installed. Recommended versions are 2.6 or 2.7. The Python installer exist for all major operating systems. Prerequisite for the ZMS-Installtion is the presence of a typical Python installation environment, which is produced in three steps:

  1. Python installing
  2. Setuptools installeding: the setuptools Python module provides the easy_install ready to install Python packages directly to you from the Web)
  3. Virtualenv installing: the virtualenv python module generates a mirrored, additional "virtual" Python environment based on the primary Python installation. In this virtual environment you can then run your own Python applications. The virtual environment   can be deleted at any time, without affecting the primary Python installation would be affected.

In the following the complete installation on a Windows workstation will be illustrated:  

1. Python Installation ( Python 2.6 für Win32 as an Example)

For Windows (and all other operating systems) there is a Python executable installer that you can download it from Python web site


Python installation via msi file


3. Installing virtualenv


For installation of additional Python packages like virtualenv the Python program "easy_install" is used; it is called within the Windows console cmd.


a. Using Windows console to change into the script directory:
cd D:\Program Files\Python26\Scripts

b. install virtualenv:
D:\Program Files\Python26\Scripts\easy_install virtualenv

TIP: Behind a proxy the environment variable http_proxy must be set, for example:
set http_proxy = http://proxy:8080/

4. Create a virtual Python environment

The virtualenv package can produce a copy of the above installed Python environment. It is advisable to run basically the custom Python applications in a virtual environment. In this way, ZMS (together with any necessary additional packages such as database adapters) can be removed easily from the computer again, without affecting the primary Python installation. After deleting the virtual environment the primary Python installation persists for other usage scenarios and other virtual environments. Running virtualenv.exe you can choose a destination directory (D: \ data \ virtpy) and the login data of the root user:

D:\Program Files\Python26\Scripts\virtualenv --no-site-packages D:\data\virtpy


Creating a virtual Python environment


5.  ZMS installation and creation of a Zope instance

The ZMS-installer now will executed in the new virtual environment, this is the Script directory just created with the new Python environment:

cd D:\data\virtpy\Scripts\

and finally the the ZMS package will be installed via easy_install:

easy_install Products.ZMS

The ZMS Python package automatically installs all necessary additional packages (notably Zope). Since ZMS uses Zope application server it is neccessary to create a Zope instance. The script required for this is mkzopeinstance, now alsobe found  in the script directory:


Once the script is called on the console, you would specify the destination directory for the Zope instance and the data for the root user: mkzopeinstance creates all resources for a new Zope environment, including the starting script.


The installation of ZMS will automatically draw all the necessary Python packages from the web directory PyPI


Creation of a Zope instance (here "myzms") in any destination directory (D:\data\zope\instance\)


6. Initializing ZMS via Zope Web GUI


After you start Zope by calling the starting script in the ./bin folder of the Zope instance (1), one can request the Zope Web-GUI (2) via http://localhost:8080 and initialize ZMS as a "product" (3). Thus the web-based publishing environment is ready for content production.



Products.ZMS 2.13.4
Current version of ZMS as an installable Python Egg
This book is designed to introduce you to Zope2, an open-source web application server.
Easy Install is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages.

Erstellt von: Dr. F. Hoffmann , SNTL Publishing , erstellt am:  2012/01/19 , zuletzt geändert: 2012/01/20