Difference between revisions of "Zope HOWTO"
| Line 1: | Line 1: | ||
This page documents how to use Zope with Funtoo Experimental, which currently has good Zope support thanks to [[Progress Overlay Python]] integration. | This page documents how to use Zope with Funtoo Experimental, which currently has good Zope support thanks to [[Progress Overlay Python]] integration. | ||
| + | |||
| + | == About Zope == | ||
| + | |||
| + | Zope is an Open Source application server framework written in Python. | ||
| + | |||
| + | There are two versions of Zope -- Zope 2 and Zope 3. One might assume that Zope 3 is the version that people should use by default, but this is not the case. Most Zope-based projects continue to use Zope 2. | ||
| + | |||
| + | Zope 3 is not very actively developed. There are plans to release Zope 4, which will be based on Zope 2.13. Basically, this means that Zope 3 never really got actively adopted by the community and that Zope 2 and (in the future) Zope 4 are the platforms you will probably be targeting. | ||
| + | |||
| + | There is also something called [http://codespeak.net/z3/five/ Five] (named because it is "2 + 3") that backports many of the new features of Zope 3 into Zope 2 framework. Several projects will use Zope 2 plus Five in order to use some of the newer features in Zope. | ||
== First Steps == | == First Steps == | ||
Revision as of 23:07, 30 January 2012
This page documents how to use Zope with Funtoo Experimental, which currently has good Zope support thanks to Progress Overlay Python integration.
Contents |
About Zope
Zope is an Open Source application server framework written in Python.
There are two versions of Zope -- Zope 2 and Zope 3. One might assume that Zope 3 is the version that people should use by default, but this is not the case. Most Zope-based projects continue to use Zope 2.
Zope 3 is not very actively developed. There are plans to release Zope 4, which will be based on Zope 2.13. Basically, this means that Zope 3 never really got actively adopted by the community and that Zope 2 and (in the future) Zope 4 are the platforms you will probably be targeting.
There is also something called Five (named because it is "2 + 3") that backports many of the new features of Zope 3 into Zope 2 framework. Several projects will use Zope 2 plus Five in order to use some of the newer features in Zope.
First Steps
First, you will need to use Funtoo Experimental and emerge Zope:
# emerge --jobs=10 zope
Currently, to get this to complete successfully, you must add the following line to /etc/portage/package.use:
>=net-zope/namespaces-zope-0 Shared Products Shared.DC zope.app
Zope is now installed.
First Project
Zope should be used by a regular user account, not as the root user.
The first step in using Zope is to ensure that you are using a regular user account. Create a new directory called zope_test:
$ cd $ mkdir zope_test
Now, enter the directory, and create an "instance", which is a set of files and directories that are used to contain a Zope project:
$ cd zope_test $ /usr/lib/zope-2.13/bin/mkzopeinstance
You will see the following output, and will be prompted to answer a few questions:
Please choose a directory in which you'd like to install Zope "instance home" files such as database files, configuration files, etc. Directory: instance Please choose a username and password for the initial user. These will be the credentials you use to initially manage your new Zope instance. Username: admin Password: **** Verify password: ****
Now, we will start our Zope instance:
$ cd instance $ bin/runzope
ZMI
Now that Zope is running, you can visit localhost:8080 in your Web browser. You will see a nice introductory page to Zope.
If you now go to the localhost:8080/manage URL, you will be prompted to log in. Enter the username and password you specified. You are now logged in to the ZMI (Zope Management Interface.)
| Creative Commons Attribution-ShareAlike 2.5 Generic
The content of this page is a derivative work. You can redistribute and/or modify it under the terms of the Creative Commons Attribution-ShareAlike 2.5 License. (Original Author: Benji York) |