Git Product home page Git Product logo

Comments (5)

mauritsvanrees avatar mauritsvanrees commented on June 22, 2024 2

I have the same problem. Creators is something like ['Joe', '', 'Jane'] it fails. Philip's suggestion helps.

This would be useful to add in the package. Where would we do this? Maybe do this cleanup during export, when "Modify exported data for migrations" is checked?

from collective.exportimport.

fredvd avatar fredvd commented on June 22, 2024

I just checked one of my previous migrations because I can't remember having issues with the Creator field. In my migration so far with collective.exportimport the creator has been copied. Maybe this is done with the local roles import where the 'Owner' local role is applied to the new content?

from collective.exportimport.

pbauer avatar pbauer commented on June 22, 2024

I also checked and the creator-data is exported fine (AT and DX) . The probem you encounter is probably that there is a empty string in the list of creators.

To fix that simply use

item["creators"] = [i for i in item.get("creators", []) if i]

in your global_dict_hook.

from collective.exportimport.

Rudd-O avatar Rudd-O commented on June 22, 2024

Yeah I think the package should just do this. An empty string for Creator is outright bad data.

from collective.exportimport.

holdenhao avatar holdenhao commented on June 22, 2024

Currently, content is exported without creator information.

I have experienced this as well but only for DX content that does not implement plone.ownership behavior and does not have a creators field defined in its schema. I am using c.exportimport 1.4 on Plone 5.2.7.

If you add a creators entry in your json file, it will also not be imported without the behavior or field schema.

from collective.exportimport.

Related Issues (20)

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.