History for PTKInstallation
??changed:
-
The current PTK infrastructure is composed of the following product
packages:
o [PTKBase] (from CVS)
o [PTKDemo] (from CVS)
o [ZCallable] (from CVS)
o [DemoPortal.zexp] (available in PTKDemo subdir)
o [Wizard.zexp] (available in PTKDemo subdir)
o LoginManager (downloadable from Zope.org)
o ZPatterns (downloadable from Zope.org)
For running on Zope 2.2 without a problem you need the latest release of all
these products.
o 1. Thanks to Jim Tittsler <[email protected]> you should be able to get an
updated tarball built from the CVS (updated after each change in the CVS) at
http://starship.python.net/crew/jwt/zope/ZopePTK/
o 2. Untar it and copy its content (the actual product subdirectories) to your
.../lib/python/Products
o 3. Copy DemoPortal.zexp and Wizard.zexp to your .../import
o 4. Now, download the latest LoginManager and ZPatterns.
o 5. For LoginManager, you just need to untar it to your Products subdir.
o 6. For ZPatterns-0-4-0a5, the package includes a C extension called
'DynPersist' which must be built before the product can be used. So after
untaring it to the Products dir, you need to build this extension using the
included 'Setup' file in the ZPatterns directory. For this purpose, copy a 'Makefile.pre.in' to the directory, and then do a 'make -f Makefile.pre.in boot' followed by a 'make'.
o [Note: What I did was go and look in the binary
provided by Nick Garcia at
http://www.zope.org/Members/ngarcia/ZPatternsBinaryRelease/ZPatterns-linux2-x86-0_3_0.tgz/view for the version 0.3.0, get the Makefile.pre.in from the package and copy it
over to my installation. Then the 'make' build worked for me.]
o Alternative to Note: There are several nearby copies of the generic Makefile.pre.in file in a standard Zope installation. I copied the one
from lib/python/ to the ZPatterns directory.
o Note for Windows users : DynPersist.dll (works for me on ZPatterns 0-4-2a1) provided by Jeff K. Hoffman is downloadable from the DynPersist Wiki page
o 7. Restart Zope to have all these products installed. If you get no error,
you are almost OK.
o 8. Get to your Zope management interface and import Wizard.zexp (first) and DemoPortal.zexp to
Control Panel/Products. If you get no traceback, the installation in itself
has gone right.
***Optional***
Now, for people most interested by using the PTK's Membership facility
without the complete PTK, Kevin Dangoor aka tazzzzz has packaged up a couple
of products you need to install on top of the previous discussed
infrastructure. This package in turn depends on the PythonMethods product.
o 1. Just download the Membership stuff via
ttp://www.zope.org/Members/tazzzzz/Membership/Membership-0-6-0.tgz/, and the
PythonMethods latest version from Zope.org.
o 2. Install the products as usual. (Membership tarball will unpack in 2
products Membership and MembershipZ in your .../Products dir.)
o 3. Restart Zope and get to the management interface. You will find the 2 new
products + PythonMethods product in the Control panel/Products.
o 4. MembershipZ is a ZClass based product that can be customized. There is a
bug for compatibility with Zope 2.2 which Itamar Shtull-Trauring
<[email protected]> has solved.
Go inside its folder and edit the Python method which id is 'doInstall'.
In this method, the code extract
folder.manage_addProduct[['LoginManager']].manage_addLoginManager(
folder,
usource='Persistent User Source',
lmeths=[['Basic Auth Login', 'Basic Cookie Login']],
loginf=0, logoutf=0, forbidp=1)
...should be replkaced by the following one:
folder.manage_addProduct[['LoginManager']].manage_addLoginManager(
usource='Persistent User Source',
lmeths=[['Basic Auth Login', 'Basic Cookie Login']],
loginf=0, logoutf=0, forbidp=1)
o 5. Finally you can try to add a Membership System at the root (via the Add
button). It will replace the existing acl_users folder with the new system.
o 6. After adding the new membership system, close your browser, and go back
with 'www.myzope.com/manage'. Good suprise: you reach a page where you just
have to enter the management user login you registered when installing the
system (step before).