[Zope-CMF] migrating PTK -> CMF

Lucas Hofman lucas.hofman@oslo.pgs.com
Tue, 17 Apr 2001 14:34:03 +0200


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.

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):
            File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
222, in publish_module
            File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
187, in publish
            File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
171, in publish
            File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, line
160, in mapply
              (Object: manage_workspace)
            File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
112, in call_object
              (Object: manage_workspace)
            File
/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. 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



             Troubleshooting Suggestions

                  The URL may be incorrect. 
                  The parameters passed to this resource may be
incorrect. 
                  A resource that this resource relies on may be
encountering an error. 

             For more detailed information about the error, please refer
to the HTML source for this page. 

             If the error persists please contact the site maintainer.
Thank you for your patience. 


Traceback (innermost last):
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/share/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
    (Object: manage_access)
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: manage_access)
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/AccessControl/Role.py, line
258, in manage_access
    (Object: ApplicationDefaultPermissions)
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
    (Object: _normal_manage_access)
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py,
line 353, in _bindAndExec
    (Object: _normal_manage_access)
  File /usr/share/Zope-2.3.0-linux2-x86/lib/python/App/special_dtml.py,
line 236, in _exec
    (Object: _normal_manage_access)
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_With.py,
line 146, in render
    (Object: _.namespace(valid_roles=valid_roles()))
  File
/usr/share/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
line 644, in renderwob
    (Object: permission_settings)
  File
/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? And how was the old dogbowl converted to
CMF 1.0?

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 :-(

Regards, Lucas
-- 
Lucas Hofman
PGS Research                                    work: +47 67514059
PO Box 354                                       fax: +47 67526640
N-1326 Lysaker, Norway                          home: +47 67581373