# HG changeset patch # User Sylvain Thénault # Date 1288117350 -7200 # Node ID 592c88c8f018cbb15b87ae7c185ee7be8a1e4c3d # Parent 4a0283b3ce0ccb52f3e01a872a5d04171e99b086 [3.10] use cw_attr_cache, entity has no more iteritems method diff -r 4a0283b3ce0c -r 592c88c8f018 server/sources/pyrorql.py --- a/server/sources/pyrorql.py Tue Oct 26 20:22:08 2010 +0200 +++ b/server/sources/pyrorql.py Tue Oct 26 20:22:30 2010 +0200 @@ -395,7 +395,7 @@ def _entity_relations_and_kwargs(self, session, entity): relations = [] kwargs = {'x': self.eid2extid(entity.eid, session)} - for key, val in entity.iteritems(): + for key, val in entity.cw_attr_cache.iteritems(): relations.append('X %s %%(%s)s' % (key, key)) kwargs[key] = val return relations, kwargs