Comments (5)
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.
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.
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.
Yeah I think the package should just do this. An empty string for Creator is outright bad data.
from collective.exportimport.
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)
- Import with blob_paths duplicate blobs in blobstorage HOT 1
- Temporarily disallow constraints when creating content
- Fix html: wrong image variants chosen HOT 1
- Drop Python 3.6 support? HOT 1
- Wrong blob path when serializing an ATImage HOT 6
- Discussion importer should not check for discussion support being enabled on a particular content object HOT 4
- why is the UID set after the custom_contenttype hook? HOT 2
- Can't export content with versions in Plone 5.0 HOT 1
- Robustness in content_export for CMFEditions versions, lock_info
- fix_html_in_portlets should also support additional fixers
- Timezone dropped from non-naive datetimes during conversion
- Better Reporting of Failed Exported Objects
- relative path not used when exporting p.a.redirector rules HOT 1
- Usage of json.dumps before deserialization @import HOT 2
- Editing revision author is not preserved on import HOT 1
- ```Import of plone.app.contenttypes.migration.topics import CONVERTERS not working with V 1.9 HOT 1
- Import of plone.app.contenttypes.migration.topics import CONVERTERS not working with V 1.9 HOT 2
- KeyError: 'time' for history_item HOT 1
- Migration between Volto sites HOT 4
- LDAP principals not added to existing groups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collective.exportimport.