[Zope-CMF] CMF to Plone

Alan Runyan runyaga@runyaga.com
Sat, 21 Dec 2002 00:30:52 -0600


> What is the best way to migrate from the CMF to Plone?  I have
successfully
> copy/pasted a folder from cmf1.1 into Plone RC1, and if I type the URL of
> the cmf1.1 folder directly I can access the folder contents. However, if I
> go to the root of my plone site (where I pasted the cmf1.1 folder), and
> switch to contents view, I do not see my folder, just the Members plone
> folder.

Plone Folders are different than CMF Folders.

a) they are different classes
b) have different Factory Type Info.

you will need to write some sort of script that replaces your CMF folders
w/ Plone Folder instances.  should be less than 10 lines of code -- I think.

> I'm guessing I will have to change the type or meta type on all of my old
> content to match plone content? Is there an easier way?

nope.  you will need to change instances.  Since we dont have any 'instance'
attributes that are special you might be able to just change the __class__
to point to the Plone Folder and change out the FTI information (Plone
Folder)
and I think you are good to go.

here is a link on Python Persistence that will give you a better
understanding
of Python/ZODB persistence.

http://www-106.ibm.com/developerworks/linux/library/l-pypers.html

~runyaga