[Zope-CMF] Re: migrating PTK -> CMF

Tres Seaver tseaver@digicool.com
Tue, 17 Apr 2001 11:40:05 -0400 (EDT)


On Tue, 17 Apr 2001, Lucas Hofman wrote:

> I am finished with the construction of an updated intranet site
> based on CMF 1.0. The only thing remaining is the migration of
> the data from a Zope 2.1.6 / PTK 0.7.1 site. And I am stuck.

Ouch!

> Both Andrew's How-To and Tres migrate.py script presume access
> to both a PTK portal and a CMF site in the same data.fs
> database. So far I have not succeeded in achieving this. What I
> have done is the following:
> 
> Start with a Zope 2.1.6/PTK 0.7.1 setup (including import of
> Demoportal, Wizards and ZCallable). Create a portal, join a
> user and create some content. 
> 
> Install on another machine a Zope 2.3.0 (with Patch) / CMF 1.0.
> Works fine. Now copy data.fs from the PTK0.7 instance over the
> data.fs from the CMF 1.0 instance. In the Product directory I
> need to make links to LoginManager, PTKBase and PTKDemo to be
> able to start without errors.
> 
> Opening the database works ok, and I can create a CMF default
> instance.  However, trying (with the ZMI) to open the PTK
> instance produces an authorization box (I was logged in as
> admin). Pressing cancel results in the following error:
> 
> 
>           Zope Error
> 
>           Zope has encountered an error while publishing this resource. 
> 
>           Unauthorized
> 
>           You are not authorized to view this object.
> 
>           Traceback (innermost last):

<snip>

> /usr/share/Zope-2.3.0-linux2-x86/lib/python/App/Management.py, line 148,
> in manage_workspace
>               (Object: DemoPortalBase)
>           Unauthorized: (see above)
> 
> I think this has something to do with either the change in security
> policy between Zope 2.1.6 and 2.3.0 or with the LoginManager.

That error appears to indicate that the DemoPortalBase object
(the "portal root") is returning the Wrong Thing when asked for
its 'filtered_management_options'.

> When trying to look at the security tab in the root folder I
> get:
> 
> Error Type: TypeError
> Error Value: string member test needs char left operand

<snip>

> /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line
> 182, in permission_settings
>     (Object: ApplicationDefaultPermissions)
>   File
> /usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line
> 177, in <lambda>
> TypeError: (see above)
> 
> The security tab works fine in places where the old PTK instance is not
> 'seen'.
> 
> How is this supposed to work?

I'm looking at reproducing your problem right now;  more
later.

> And how was the old dogbowl converted to CMF 1.0?

The dogbowl was created under Zope 2.2.x, with a later version
(0.9.1?) of the PTK.

> Any help is greatly appreciated. Being finished with a new
> application but not able to start using it because the data is
> locked up in an old version is difficult to  explain :-(

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