Closed flipmcf closed 11 months ago
failing the py27 tests.... I guess the whole "hey, these can be f-strings!" idea wasn't so good after all.
Thank you!
I'm not satisfied because it (probably) generates a export that is not importable back into plone - if errors occur. I haven't tested importing back into plone if the error dictionary with "unexported_paths" exists at the end.
But maybe we like making exports with errors fail on import - because it stops the import and the user must face the fact that some objects didn't export.
This adds a new form field on
@@export_content
"write_errors" which turns on a list of unexported paths at the end of a json export.When 'write_errors' is set to a true value, the export appends the list like so:
Additionally, ~some log messages were converted to 'f' strings to "leave it better than you found it" and~ error logs now show number of errors or 'skipped objects' during export: