collective / collective/collective.exportimport
Relations not exporting with multilingual support
- Dominant language
- Python
- Stars
- 19
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
Using Plone 5.2 and collective.exportimport 1.15, with plone.app.multilingual enabled. @@export_relations returns nothing to export.
In ExportRelations class and method get_all_references, there are these lines:
if rel_from_path_and_rel_to_path:
from_brain = portal_catalog(
path=dict(query=rel.from_path, depth=0),
Language="all",
)
to_brain = portal_catalog(
path=dict(query=rel.to_path, depth=0),
Language="all",
)
Those catalog queries always return [] for me. If i remove the language filter lines, the correct objects are found and my relations export with thousands of relations is fine. I don't think this would be a general fix, but maybe someone with more knowledge of multilingual filtering than me could look into this?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the @@export_relations entry point and inspect the ExportRelations class, especially get_all_references and its portal_catalog queries. Reproduce the issue with Plone 5.2, collective.exportimport 1.15, and plone.app.multilingual enabled, then verify that relations are discovered and exported while multilingual filtering remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 57/100