-
Notifications
You must be signed in to change notification settings - Fork 17
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
Parent containers always created as Folder rather than the related @type as defined in parent #139
Comments
The basic assumption that every parent is a is wrong. Parent containers can be arbitrary containerish types. This must be taken into account. It also does not help (as a workaround) to import some container type before the other container type because there parents might be mixed in any arbitrary combination. |
There is perhaps another flaw in the parent handling. Our
With the current implementation, both parent folders I think, we need
|
I implemented the
|
The following (ugly) code recreates the folderish objects with the correct portal_type and workflow state: |
Situation:
File.json
Folder
instances but more specialized DX container classesFolder
independent of@type
value of the parent item:https://github.com/collective/collective.exportimport/blob/main/src/collective/exportimport/import_content.py#L831
The text was updated successfully, but these errors were encountered: