plone / plone/plone.exportimport
Portlet import/export does not work if you empty a portlet manager
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2
- Forks
- 3
- Avg merge
- 21h 16m
- Merged PRs (30d)
- 1
Description
If one creates a classic site and removes the left and right portlets, the portlet exporter doesn't signal that those columns are empty:
This is an example portlets.json file removing the left and right columns, and removing all other footer portlets except the site actions:
[
{
"@id": "http://nohost/Plone",
"UID": "plone_site_root",
"portlets": {
"plone.footerportlets": [
{
"assignment": {
"category": "site_actions",
"default_icon": "action_icon.png",
"ptitle": "site_actions",
"show_icons": false,
"show_title": false
},
"type": "portlets.Actions",
"visible": true
}
]
}
}
]
Thus, if you import the created json files into a site, the default left and right portlets are kept.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the portlet export and import handling in plone.exportimport, using the example portlets.json as the reproduction case. Verify that removing all portlets from the left and right managers is represented during export and preserved after import.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100