You are not logged in Log in Join
You are here: Home » Download Zope Products » Content Management Framework (ne "PTK") » ZWiki » PTKInstallation » wikipage_view

Log in
Name

Password

 
 
PTKDashboard » PTKHowtos »

PTKInstallation

The current PTK infrastructure is composed of the following product packages:

  • [PTKBase]? (from CVS)
  • [PTKDemo]? (from CVS)
  • [ZCallable]? (from CVS)
  • [DemoPortal.zexp]? (available in PTKDemo? subdir)
  • [Wizard.zexp]? (available in PTKDemo? subdir)
  • LoginManager (downloadable from Zope.org)
  • ZPatterns (downloadable from Zope.org)

For running on Zope 2.2 without a problem you need the latest release of all these products.

  • 1. Thanks to Jim Tittsler 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/
  • 2. Untar it and copy its content (the actual product subdirectories) to your .../lib/python/Products
  • 3. Copy DemoPortal.zexp and Wizard.zexp to your .../import
  • 4. Now, download the latest LoginManager and ZPatterns.
  • 5. For LoginManager, you just need to untar it to your Products subdir.
  • 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.
  • 7. Restart Zope to have all these products installed. If you get no error, you are almost OK.
  • 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.

  • 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.
  • 2. Install the products as usual. (Membership tarball will unpack in 2 products Membership and MembershipZ in your .../Products dir.)
  • 3. Restart Zope and get to the management interface. You will find the 2 new products + PythonMethods? product in the Control panel/Products.
  • 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 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)

  • 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.
  • 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).