# HG changeset patch # User Sylvain Thénault # Date 1475247882 -7200 # Node ID 78c8a2bb04ff54b022f3903cb9b9539fced912c2 # Parent efb8250e37fbb165ec8b677b9549158c55c3a092 [json] Stop serializing cw_source into default json representation of an entity Related to #15538288 diff -r efb8250e37fb -r 78c8a2bb04ff cubicweb/entities/adapters.py --- a/cubicweb/entities/adapters.py Thu Sep 29 23:11:38 2016 +0200 +++ b/cubicweb/entities/adapters.py Fri Sep 30 17:04:42 2016 +0200 @@ -361,7 +361,6 @@ entity.complete() data = { 'cw_etype': entity.cw_etype, - 'cw_source': entity.cw_metainformation()['source']['uri'], 'eid': entity.eid, } for rschema, __ in entity.e_schema.attribute_definitions(): diff -r efb8250e37fb -r 78c8a2bb04ff cubicweb/entities/test/unittest_base.py --- a/cubicweb/entities/test/unittest_base.py Thu Sep 29 23:11:38 2016 +0200 +++ b/cubicweb/entities/test/unittest_base.py Fri Sep 30 17:04:42 2016 +0200 @@ -248,7 +248,6 @@ serializer = entity.cw_adapt_to('ISerializable') expected = { 'cw_etype': u'CWGroup', - 'cw_source': 'system', 'eid': entity.eid, 'cwuri': u'http://testing.fr/cubicweb/%s' % entity.eid, 'creation_date': entity.creation_date,