Martijn Pieters | 13 Sep 23:30

Re: upgrade error 2.0.5 to 2.1

johnny wrote:
> How should I use this. I'm not a python programmer. More a php
> programmer some help would be very usefull.

In the ZMI (site setup > Zope Management Interface) you can create a
Python Script object (drop-down box top right, select 'Script
(Python)'). Choose any id ('fix_catalog' or whatever), no title needed.
Hit 'Add and Edit'.

Replace the sample code with the line 'return
len(context.portal_catalog)'. Hit 'Save Changes'.

Find and select the 'Test' tab along the top. You'll see a number appear,
that's the number of items in your catalog. At the same time, your
catalog length attrtibute will have been converted, and you can do your
Plone migration again.

Optional: by hitting the back button of your browser, you can get back to
the Python Script object. At the top is an icon (a python) and a
breadcrumbs path. Select the path element right before the name of the
script. On windows or other virtual hosted sites this will a slash (/),
otherwise it'll be the short name of your Plone site. Selecting it will
bring you back to the ZMI view of your Plone site.

Here you can check the box in front of the script object we created and
delete it again by hitting the Delete button at the bottom. Selecting
the 'View' tab at the top of this view will take you back to Plone.

Martijn Pieters

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Gmane