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

Philippe Pepiot philippe.pepiot at logilab.fr
Fri Mar 3 09:49:36 CET 2017


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 ?



More information about the saem-devel mailing list