[saem-devel] [PATCH 07 of 10] [schema] Backport some unreleased fixes from eac schema

Sylvain Thenault sylvain.thenault at logilab.fr
Tue Jan 31 09:49:12 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1485812056 -3600
#      Mon Jan 30 22:34:16 2017 +0100
# Node ID 7fd7874eb24a41cd82b22fa62f5d4e8468bdb7ac
# Parent  0586614510c52d46fb043e3143b4d653590a5f14
[schema] Backport some unreleased fixes from eac schema

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
@@ -24,11 +24,11 @@ from cubicweb.schema import (RO_ATTR_PER
                              RQLConstraint, RQLVocabularyConstraint, WorkflowableEntityType,
                              make_workflowable)
 from cubicweb.schemas.base import ExternalUri, EmailAddress
 
 from cubes.skos.schema import ConceptScheme
-from cubes.eac.schema import AuthorityRecord
+from cubes.eac.schema import AuthorityRecord, NameEntry
 from cubes.seda.schema import simplified_profile
 from cubes.seda.schema.seda2 import SEDAArchiveTransfer
 
 from . import PERMISSIONS_GRAPHS, optional_relations, mandatory_rdefs
 
@@ -127,10 +127,14 @@ EmailAddress.remove_relation('alias')
 
 # Customization of eac schema.
 make_workflowable(AuthorityRecord)
 groups_permissions(AuthorityRecord)
 
+NameEntry.get_relation('form_variant').internationalizable = True  # XXX
+NameEntry.get_relation('form_variant').default = u'authorized'  # XXX
+
+
 # Customization of skos schema.
 make_workflowable(ConceptScheme)
 publication_permissions(ConceptScheme)
 
 


More information about the saem-devel mailing list