![]() |
Zope Launcher for CGILua |
The Zope launcher for CGILua lets a Zope installation launch CGILua scripts. It uses Lunatic Python as a bridge between Python, the native language of Zope, and Lua. The CGILua scripts can use the full CGILua API.
First, install Kepler for your platform. Now download and install Lunatic Python, in case you have not done it yet. Then copy the Zope launcher sources to a subfolder inside the Products folder of your Zope instance (Products/CGILua, for example).
Now edit the cgilua.py file, changing the value of the product_folder variable to the folder where you copied the launcher's sources. Restart Zope, and you are ready.
If the installation was successful, you will see a new product in Zope's product list: CGILua Installation. Create a new instance of this product. You will see the configuration page. Give the new instance an ID (short name), a title and a document root. The document root is where your scripts are.
To launch your scripts, add the script path (under the document root) after the link to the instance you created. For example, if the instance is in the scripts Zope folder, and has a cgilua ID, the http://your.zope/scripts/cgilua/foo/bar.lua link will launch the bar.lua script inside the foo folder of your document root.
Click on the instance to change any of its attributes (ID, title or document root). You can have as many instances as you want, pointing to different document roots.
The Zope launcher was designed and coded by Fabio Mascarenhas, with help from Danilo Tuler. It is part of the Kepler Project.
For more information please contact us. Comments are welcome!