Skip to content

Commit

Permalink
Remove custom serializer for relations beacuse of ConfigurationConfli…
Browse files Browse the repository at this point in the history
…ctError with restapi. relations are dropped anyway in update_data_for_migration when using the default setting.
  • Loading branch information
pbauer committed Jul 21, 2021
1 parent c350fef commit 763c3a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/collective/exportimport/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@
<adapter factory=".serializer.FileFieldSerializerWithBlobs" />
<adapter factory=".serializer.ImageFieldSerializerWithBlobs" />
<adapter factory=".serializer.RichttextFieldSerializerWithRawText" />
<adapter zcml:condition="installed z3c.relationfield"
factory=".export_content.relationvalue_converter_uuid" />

<browser:page
name="exportimport_links"
Expand Down
9 changes: 0 additions & 9 deletions src/collective/exportimport/export_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,6 @@ def migrate_field(item, old, new):
return item


if HAS_RELATIONS:
@adapter(IRelationValue)
@implementer(IJsonCompatible)
def relationvalue_converter_uuid(value):
"""Save uuid instead of summary"""
if value.to_object:
return value.to_object.UID()


def safe_bytes(value, encoding="utf-8"):
"""Convert text to bytes of the specified encoding."""
if isinstance(value, six.text_type):
Expand Down

0 comments on commit 763c3a8

Please sign in to comment.