[PATCH 7 of 9 seda] [entities] Backport cloning feature for archive transfer

Sylvain Thénault sylvain.thenault at logilab.fr
Fri Mar 3 09:50:40 CET 2017



Le 03/03/2017 à 09:49, Philippe Pepiot a écrit :
> On 03/01/2017 12:31 PM, Sylvain Thenault wrote:
>> # HG changeset patch
>> # User Sylvain Thénault <sylvain.thenault at logilab.fr>
>> # Date 1488367053 -3600
>> #      Wed Mar 01 12:17:33 2017 +0100
>> # Node ID b7f58caefba12c946120aff0c874778f1a4a34b5
>> # Parent  8791e9be0af427439f0b1fbbed41b001ad8c99c8
>> [entities] Backport cloning feature for archive transfer
>>
>> diff --git a/cubicweb_seda/entities/__init__.py
>> b/cubicweb_seda/entities/__init__.py
>> --- a/cubicweb_seda/entities/__init__.py
>> +++ b/cubicweb_seda/entities/__init__.py
>> @@ -141,17 +141,26 @@ def rule_type_from_etype(etype):
>>
>>  class DirectLinkIContained(IContained):
>>      """IContained implementation using a relation that link every
>> contained entities to its parent
>>      container.
>>      """
>> +    __abstract__ = True
>> +
>>      @property
>>      def container(self):
>>          """Return the container to which this entity belongs, or
>> None."""
>>          container = self.entity.related('container', entities=True)
>>          return container and container[0] or None
>>
>
> Is this chunk related to the patch ?
nop

-- 
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