[json] Stop serializing cw_source into default json representation of an entity
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 30 Sep 2016 17:04:42 +0200
changeset 11761 78c8a2bb04ff
parent 11760 efb8250e37fb
child 11762 7518cb58ab4c
[json] Stop serializing cw_source into default json representation of an entity Related to #15538288
cubicweb/entities/adapters.py
cubicweb/entities/test/unittest_base.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():
--- 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,