[Zope-CMF] Re: [Zope] Upgrade path from 2.2.2 and PTK

Tres Seaver tseaver@digicool.com
Fri, 04 May 2001 07:03:32 -0400


Chris Withers wrote:
> 
> You may want to ask this on the zope-cmf list...
> 
> Paul Winkler wrote:
> >
> > Hi,
> >
> > OK, I have a site I've been working on for months that's based
> > on Zope 2.2.2 and PTK 0.8.2. That's what was current when I got
> > started.
> >
> > Now I want to update things a bit before I put this on a
> > production server.   My site is a heavily-customized version
> > of the DemoPortal from PTK 0.8.2.
> > Well, now you guys are up to Zope 2.3.2 and CMF 1.0.
> >
> > Can anyone recommend the safest, least painful procedure for
> > upgrading my stuff?
> > Once I get Zope upgraded, can I just install CMF alongside PTK
> > and migrate things over piecemeal? (I'll probably have to do it
> > a bit at a time, as I've customized quite a lot of PTK...)

The best strategy depends on the scope of your changes (were they
changes to the "look-and-feel" methods copied the DemoPortal
instance?  Did you modify the ZClasses in the PTKDemo product,
as well?)  One approach:

 * Create a CMFSite object alongside your DemoPortal instance,
   and use the ZMI's copy-paste to move all your customized
   DTMLMethods into the 'portal_skins/custom' folder of the
   CMFSite.  View the site -- does it look like what you expect?
   Fiddle with it, as a few names may have been changed "to
   protect the innocent".

 * If you cusomized Wizards, then you have a somewhat tougher
   row to hoe:  the CMF doesn't use them, preferring instead to
   create "empty" instances and then use the "normal" editing
   methods of the object to set metadata and add the content.
   Try adding a Document using the default mechanism, and see if
   it does what you want.

 * Browse the dogbowl site, http://cmf.zope.org, for details on
   the architecture of the CMF, and ask more questions here.

FWIW, your use case here is the driver behind the creation of
filesystem-based skins:  we needed to be able to deliver new
versions of the software without stepping on the community's
customizations.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org