-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export creator information #38
Comments
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? |
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 |
I have the same problem. Creators is something like 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? |
Yeah I think the package should just do this. An empty string for Creator is outright bad data. |
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. |
Currently, content is exported without creator information. There are cases, however, when that information is needed and it is not sufficient to have imported objects created by the importing user. Maybe it would be useful to export creator information optionally, but if so, I'm not sure about whether it should be done by default.
The text was updated successfully, but these errors were encountered: