Commit 175d9358 authored by Julien Cristau's avatar Julien Cristau
Browse files

[entities] add eid to ISerializableAdapter

Life without an eid is made of sadness.
parent 12db20aeda44
......@@ -363,6 +363,7 @@ class ISerializableAdapter(view.EntityAdapter):
data = {
'cw_etype': entity.cw_etype,
'cw_source': entity.cw_metainformation()['source']['uri'],
'eid': entity.eid,
}
for rschema, __ in entity.e_schema.attribute_definitions():
attr = rschema.type
......
......@@ -249,6 +249,7 @@ class ISerializableTC(CubicWebTC):
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,
'modification_date': entity.modification_date,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment