HomeSoftware Heritage

Replace 'normalize' parameter of _translate_dict() with a hook method

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Replace 'normalize' parameter of _translate_dict() with a hook method

This parameter was only used to execute extra code before
normalize_translation is called. This caused some duplication, and
will not work when switching to a non-JSON-LD internal representation.

Removing it also makes the code of mappings more consistent, by removing
specific field handling from their implementation of the translate
method itself.

Details

Provenance
vlorentzAuthored on Aug 19 2022, 12:18 PM
vlorentzPushed on Aug 23 2022, 10:15 AM
Differential Revision
D8275: Replace 'normalize' parameter of _translate_dict() with a hook method
Build Status
Buildable 30965
Build 48433: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.