[PATCH saem_ref] Fix __select__ of QualifiedARKIdentifierGenerator subclasses

Denis Laxalde denis.laxalde at logilab.fr
Wed Apr 11 17:42:26 CEST 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1523461324 -7200
#      Wed Apr 11 17:42:04 2018 +0200
# Node ID 1643e1be9c15edba6416480e0e353988893bfa99
# Parent  fc0082fd78d8bea829625a01309aa7018665cfb6
# Available At http://hg.logilab.org/review/cubes/saem_ref
#              hg pull http://hg.logilab.org/review/cubes/saem_ref -r 1643e1be9c15
# EXP-Topic ark-for-archiveunit
Fix __select__ of QualifiedARKIdentifierGenerator subclasses

I.e. use the direct parent class, instead of the mixin. This is
equivalent since QualifiedARKIdentifierGenerator has the same __select__
than the mixin.

diff --git a/cubicweb_saem_ref/entities/__init__.py b/cubicweb_saem_ref/entities/__init__.py
--- a/cubicweb_saem_ref/entities/__init__.py
+++ b/cubicweb_saem_ref/entities/__init__.py
@@ -76,7 +76,7 @@ class QualifiedARKIdentifierGenerator(AR
 
 class ConceptARKIdentifierGenerator(QualifiedARKIdentifierGenerator):
     __select__ = (
-        ARKIdentifierGeneratorMixin.__select__
+        QualifiedARKIdentifierGenerator.__select__
         & match_kwargs('in_scheme')
     )
 
@@ -90,7 +90,7 @@ class ConceptARKIdentifierGenerator(Qual
 
 class OUARKIdentifierGenerator(QualifiedARKIdentifierGenerator):
     __select__ = (
-        ARKIdentifierGeneratorMixin.__select__
+        QualifiedARKIdentifierGenerator.__select__
         & match_kwargs('authority')
     )
 
@@ -104,7 +104,7 @@ class OUARKIdentifierGenerator(Qualified
 
 class SEDAArchiveUnitARKIdentifierGenerator(QualifiedARKIdentifierGenerator):
     __select__ = (
-        ARKIdentifierGeneratorMixin.__select__
+        QualifiedARKIdentifierGenerator.__select__
         & match_kwargs('seda_archive_unit')
     )
 



More information about the saem-devel mailing list