[json] Stop serializing cw_source into default json representation of an entity
Related to #15538288
--- 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,