Giter Club home page Giter Club logo

interaktiv.migrator's Introduction

============================================================================== Interaktiv Migrator: Archetype to Dexterity

Migration of Archetypes content to Dexterity. Archetypes content Items are exported individually from an Archetypes based source site to a Dexterity based target site. For this all data of the Item is collected and posted to the target site in json format. From the json data a new content item is created at the target site.

For this to work, there must be a matching portal_type on the target site. The new content item will be created under the same path as the original item, when the parent folder could not be found on the target site, the new item will not be created. If the content item under the path already exists, it is updated.

References could not be set to non existing items. For setting reference fields it is recommended using the @@export_references view for a second run, when all content is already created.

Tested on

Plone3.3.5 to Plone4.3 Plone3.3.5 to Plone5 Plone4.3 to Plone5

Installation

copy or clone repository to src folder and register in buildout.

Installation Plone3.3.5

Plone3.3.5 could only be used as target site. Use interaktiv.migrator_p3 instead.

versions to be fixed: collective.transmogrifier = 1.4 archetypes.schemaextender = 2.0.3

Configuration

Control Panel oder direct /@@migrator-controlpanel

For the source Site:

"target url" the portal_root url of the target site

For the target Site:

type mapping
field mapping
view mapping

The Mappings are lists of key value pairs separeted by "|"

Preparation Source Site

In the control panel the target url must be set. The target url is the url to the portal root.

Preparation Target Site

Install all products and check that contenttypes and behaviours are available/set. Only content is migrated, settings for the portal root (for example portlets) must be done additionally. Check and adjust mappings in the migrator /@@migrator-controlpanel.

Usage transmogrifier based content walker

On source site call /@@export_content and click button.

After Migration go to the ZMI of the target site: under portal_workflow click "update security settings" under portal_catalog/Advanced perform a "clear and rebuild" of the catalog

To set references call /@@export_references and click button.

Usage code example

from interaktiv.migrator.export_utility import get_export_utility

export_utility = get_export_utility() for brain in portal_catalog({'portal_type': 'News Item'}): export_utility.export_item(brain.getObject())

ToDo

migration of Collections migration of uid links (resolveuid=...) only migrates from Archetypes to Dexterity creating new content in different parent folder

set portlet

interaktiv.migrator's People

Contributors

pabo3000 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.