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

Sylvain Thénault sylvain.thenault at logilab.fr
Thu Mar 9 14:31:24 CET 2017



Le 09/03/2017 à 14:11, Denis Laxalde a écrit :
> 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?
>
huum it has actually been dropped in the parent cset (already applied)

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the saem-devel mailing list