--- a/cubicweb/server/querier.py Thu Oct 06 12:15:50 2016 +0200
+++ b/cubicweb/server/querier.py Sat Oct 01 11:56:27 2016 +0200
@@ -68,7 +68,7 @@
try:
return solution[term.name]
except AttributeError:
- return cnx.entity_metas(term.eval(args))['type']
+ return cnx.entity_type(term.eval(args))
def check_relations_read_access(cnx, select, args):
"""Raise :exc:`Unauthorized` if the given user doesn't have credentials to
@@ -682,7 +682,7 @@
def _build_descr(cnx, result, basedescription, todetermine):
description = []
- entity_metas = cnx.entity_metas
+ entity_type = cnx.entity_type
todel = []
for i, row in enumerate(result):
row_descr = basedescription[:]
@@ -696,7 +696,7 @@
row_descr[index] = etype_from_pyobj(value)
else:
try:
- row_descr[index] = entity_metas(value)['type']
+ row_descr[index] = entity_type(value)
except UnknownEid:
cnx.error('wrong eid %s in repository, you should '
'db-check the database' % value)