[PATCH 2 of 3 seda] [entities/clone] Never copy container relation

Sylvain Thenault sylvain.thenault at logilab.fr
Tue Mar 7 18:51:33 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1488908872 -3600
#      Tue Mar 07 18:47:52 2017 +0100
# Node ID 34b3b1ec652174a21da490a6972d8cb3aabedf42
# Parent  e78b9882d3975adb629996b4849ff3e3b540de30
[entities/clone] Never copy container relation

whatever its role.

diff --git a/cubicweb_seda/site_cubicweb.py b/cubicweb_seda/site_cubicweb.py
--- a/cubicweb_seda/site_cubicweb.py
+++ b/cubicweb_seda/site_cubicweb.py
@@ -48,10 +48,11 @@ def __init__(self, __module__=None):
     super(rtags.RelationTags, self).__init__()
     self._tagdefs = {}
 
 
 Entity.cw_skip_copy_for.append(('container', 'subject'))
+Entity.cw_skip_copy_for.append(('container', 'object'))
 Entity.cw_skip_copy_for.append(('clone_of', 'subject'))
 Entity.cw_skip_copy_for.append(('clone_of', 'object'))
 
 
 # auto-configuration of custom fields ##############################################################


More information about the saem-devel mailing list