Home Projects ZProtx Installation & testing
Document Actions

Installation & testing

Installation

1. Unpack, copy to Zope Products directory and restart the instance.
2. Add Protx Tool in ZMI from Add list. It has default id protx_tool.
3. Select storage plugin you want to use: default is ZODB storage. You can change it to SQL storage.
4. If you are using relational database create table defined in ZProtx/sql/Tables.sql.
5. If you have Protx account change Properties: Protx login/Vendor name, Protx password, Protx form action url. If not, use values provided but they will only work for VSPSimulator.

Unit tests

Go to /tests directory and if you are using Windows edit runone.bat and runall.bat and set path to Python executable in your Zope installation folder. On Linux edit runone.sh and runall.sh and do the same. Also run

chmod +x runone.sh runall.sh

to make this file executable by shell.

To execute all tests:

runall.bat (Windows)
./runall.sh (Linux)

To execute tests for one class:

 runone.bat <TEST_FILE> (Windows)
./runone.sh <TEST_FILE> (Linux)
This product was tested on Zope 2.8, 2.9 and 2.10

Known problems
1. If you see this error on Linux:
  from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy
ImportError: No module named ImplPython
That means that you are using wrong python version interpreter. You must change PYTHON variable in shell script to use version that Zope uses.

Advertisements