[PATCH 2 of 4 saem_ref] [schema] Change the way we import eac schema bits

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Mar 24 10:50:56 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490267563 -3600
#      Thu Mar 23 12:12:43 2017 +0100
# Node ID 22ccebed02ef623eb41d6ef7ca75386aa23c8f57
# Parent  8999958ac72fa73320a689998ab4ed42e931078d
[schema] Change the way we import eac schema bits

diff --git a/cubicweb_saem_ref/schema.py b/cubicweb_saem_ref/schema.py
--- a/cubicweb_saem_ref/schema.py
+++ b/cubicweb_saem_ref/schema.py
@@ -25,11 +25,11 @@ from cubicweb.schema import (RO_ATTR_PER
                              make_workflowable)
 from cubicweb.schemas.base import ExternalUri, EmailAddress
 
 from cubes.skos.schema import ConceptScheme
 from cubicweb_prov import schema as prov
-from cubicweb_eac.schema import AuthorityRecord, NameEntry
+from cubicweb_eac import schema as eac
 from cubicweb_seda.schema import simplified_profile
 from cubicweb_seda.schema.seda2 import SEDAArchiveTransfer
 from cubicweb_compound import utils
 
 
@@ -69,12 +69,12 @@ ExternalUri.__permissions__['update'] = 
 # Customization of EmailAddress entity type.
 EmailAddress.remove_relation('alias')
 
 
 # Customization of eac schema.
-make_workflowable(AuthorityRecord)
-groups_permissions(AuthorityRecord)
+make_workflowable(eac.AuthorityRecord)
+groups_permissions(eac.AuthorityRecord)
 
 
 # Customization of skos schema.
 make_workflowable(ConceptScheme)
 publication_permissions(ConceptScheme)


More information about the saem-devel mailing list