[PATCH 1 of 1 saem_ref V2] [schema] Rely on security defined in the eac cube

Denis Laxalde denis.laxalde at logilab.fr
Thu Mar 9 14:11:00 CET 2017


Sylvain Thenault a écrit :
> # HG changeset patch
> # User Sylvain Thénault <sylvain.thenault at logilab.fr>
> # Date 1488972668 -3600
> #      Wed Mar 08 12:31:08 2017 +0100
> # Node ID 3ca8d29161df269f143468ed1665495b4279618f
> # Parent  87c611021e511cee3e6cb00cea92c00f8a2bb54a
> [schema] Rely on security defined in the eac cube
>
> Beside top-level entity, we now only have to define permissions for
> ConceptScheme since both eac and seda have sensible defaults for their compound
> tree.
>
> diff --git a/cubicweb_saem_ref/__init__.py b/cubicweb_saem_ref/__init__.py
> --- a/cubicweb_saem_ref/__init__.py
> +++ b/cubicweb_saem_ref/__init__.py
> @@ -17,14 +17,21 @@
>  """cubicweb-saem_ref application package
>
>  Référenciel de Système d'Archivage Électronique Mutualisé
>  """
>
> +from functools import partial
> +
>  from six import text_type
>
>  from logilab.common.registry import objectify_predicate
>
> +from cubicweb_compound import CompositeGraph
> +
> +
> +ConceptSchemeGraph = partial(CompositeGraph, skiprtypes=('generated', 'used'))
> +

Why isn't PERMISSIONS_GRAPHS definition removed?



More information about the saem-devel mailing list