[PATCH 2 of 2 eac] WIP open question

Sylvain Thenault sylvain.thenault at logilab.fr
Thu May 18 16:51:53 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1495118262 -7200
#      Thu May 18 16:37:42 2017 +0200
# Node ID dfd133eb08ab19383acba8adb202ff1845c3ab0e
# Parent  d229d8bfabd6a3e7e227b39ead0e6a46d1bd6b63
WIP open question

diff --git a/cubicweb_eac/dataimport.py b/cubicweb_eac/dataimport.py
--- a/cubicweb_eac/dataimport.py
+++ b/cubicweb_eac/dataimport.py
@@ -35,11 +35,11 @@ from cubes.skos import to_unicode
 
 from cubicweb_eac import TYPE_MAPPING, ADDRESS_MAPPING, MAINTENANCETYPE_MAPPING
 
 
 TYPE_MAPPING = TYPE_MAPPING.copy()
-TYPE_MAPPING['human'] = u'person'
+TYPE_MAPPING['human'] = u'person'  # XXX this is not allowed by EAC DTD
 
 ETYPES_ORDER_HINT = ('AgentKind', 'PhoneNumber', 'PostalAddress', 'AuthorityRecord',
                      'AgentPlace', 'Mandate', 'LegalStatus', 'History',
                      'Structure', 'AgentFunction', 'Occupation', 'GeneralContext',
                      'AssociationRelation', 'ChronologicalRelation', 'HierarchicalRelation',


More information about the saem-devel mailing list