Skip to content

Relations not exporting with multilingual support #283

Description

@achimwilde

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions