plone / plone/plone.exportimport

`all_objects` method is returning empty objects

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2
Forks
3
Avg merge
21h 16m
Merged PRs (30d)
1

Description

The generator method in:

https://github.com/plone/plone.exportimport/blob/main/src/plone/exportimport/exporters/content.py#L28-L48

was just returned me None elements, no clue why, I had to put a try in the caller to make it work. Could be that something was wrong in my DB, nevertheless, maybe it's safer to add it anyways.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading src/plone/exportimport/exporters/content.py lines 28-48 and trace the caller that consumes all_objects. Reproduce the export case that yields None elements, then verify that all_objects returns the expected content objects without requiring the caller to catch or skip those values.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.