Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't export content with versions in Plone 5.0 #193

Open
JeffersonBledsoe opened this issue Mar 15, 2023 · 1 comment
Open

Can't export content with versions in Plone 5.0 #193

JeffersonBledsoe opened this issue Mar 15, 2023 · 1 comment

Comments

@JeffersonBledsoe
Copy link
Member

Trying to export with revisions in Plone5.0 results in the following exception:

Traceback (most recent call last):
  File "/buildout/plone/instance/buildout-cache/eggs/collective.exportimport-1.7.dev0+155870989426123572981149019563996627444-py2.7.egg/collective/exportimport/export_content.py", line 303, in export_content
    item = self.update_export_data(item, obj)
  File "/buildout/plone/instance/buildout-cache/eggs/collective.exportimport-1.7.dev0+155870989426123572981149019563996627444-py2.7.egg/collective/exportimport/export_content.py", line 347, in update_export_data
    item = self.export_revisions(item, obj)
  File "/buildout/plone/instance/buildout-cache/eggs/collective.exportimport-1.7.dev0+155870989426123572981149019563996627444-py2.7.egg/collective/exportimport/export_content.py", line 503, in export_revisions
    item_version = serializer(include_items=False, version=version_id)
TypeError: __call__() got an unexpected keyword argument 'version'

This occurs here:

item_version = serializer(include_items=False, version=version_id)

@JeffersonBledsoe JeffersonBledsoe changed the title Can't export with versions in Plone 5.0 Can't export content with versions in Plone 5.0 Mar 20, 2023
@mauritsvanrees
Copy link
Member

That version seems to be supported since plone.restapi 1.0.0 already, but maybe not in all possible serialisers.
Can you check what serializer is here?
What portal_type is the item/object for? Maybe its serializer cannot handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants