Skip to content

Commit

Permalink
[fc] Repository: plone.exportimport
Browse files Browse the repository at this point in the history
Branch: refs/heads/main
Date: 2025-01-21T22:44:12+01:00
Author: Maurits van Rees (mauritsvanrees) <[email protected]>
Commit: plone/plone.exportimport@b162d77

Include revisions only when passing --include-revisions.

Also temporarily disable versioning when creating a bare content object.
Otherwise the first version is basically nothing, it does not even have a title.

Files changed:
A news/39.feature.4
M src/plone/exportimport/cli/__init__.py
M src/plone/exportimport/exporters/__init__.py
M src/plone/exportimport/exporters/base.py
M src/plone/exportimport/exporters/content.py
M src/plone/exportimport/utils/content/export_helpers.py
M src/plone/exportimport/utils/content/import_helpers.py
Repository: plone.exportimport

Branch: refs/heads/main
Date: 2025-01-22T16:29:31+01:00
Author: Maurits van Rees (mauritsvanrees) <[email protected]>
Commit: plone/plone.exportimport@2fd3b78

Remove unneeded kwargs from dump.

Left-over from an earlier try.

Files changed:
M src/plone/exportimport/exporters/content.py
Repository: plone.exportimport

Branch: refs/heads/main
Date: 2025-01-22T16:50:09+01:00
Author: Maurits van Rees (mauritsvanrees) <[email protected]>
Commit: plone/plone.exportimport@8750537

Use unittest.mock.patch to patch isVersionable to return False.

This prevents the repository tool from being marked as changed, which is what happened with the previous code.
See plone/plone.exportimport#44 (comment)

Files changed:
M src/plone/exportimport/utils/content/import_helpers.py
Repository: plone.exportimport

Branch: refs/heads/main
Date: 2025-01-22T17:03:15+01:00
Author: Maurits van Rees (mauritsvanrees) <[email protected]>
Commit: plone/plone.exportimport@3896e8b

Document the new plone-exporter --include-revisions option.

Files changed:
M docs/features.md
Repository: plone.exportimport

Branch: refs/heads/main
Date: 2025-01-23T16:24:09+01:00
Author: Maurits van Rees (mauritsvanrees) <[email protected]>
Commit: plone/plone.exportimport@d04511e

Merge pull request #44 from plone/maurits-sustainable-exports-optional-versions

Include revisions only when passing --include-revisions.

Files changed:
A news/39.feature.4
M docs/features.md
M src/plone/exportimport/cli/__init__.py
M src/plone/exportimport/exporters/__init__.py
M src/plone/exportimport/exporters/base.py
M src/plone/exportimport/exporters/content.py
M src/plone/exportimport/utils/content/export_helpers.py
M src/plone/exportimport/utils/content/import_helpers.py
  • Loading branch information
mauritsvanrees committed Jan 23, 2025
1 parent 2c98ee0 commit 272b2c7
Showing 1 changed file with 62 additions and 21 deletions.
Loading

0 comments on commit 272b2c7

Please sign in to comment.