skeleton/entities.py.tmpl
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 24 Mar 2014 11:57:23 +0100
changeset 9582 46ed25d38fe2
parent 8207 c04676b16c59
permissions -rw-r--r--
Move entity cache from web.request.ConnectionCubicWebRequestBase to repoapi.ClientConnection ResultSet._build_entity relies on an entity cache to avoid going round in circles (stack overflow due to infinite recursion) e.g. in a postcreate script. Clear the cache at commit/rollback time to avoid unexpected side effects; and explicitly clear the cache in a few tests where we mix ORM and RQL using the same connection.

# -*- coding: utf-8 -*-
# copyright %(year)s %(author)s, all rights reserved.
# contact %(author-web-site)s -- mailto:%(author-email)s
#
%(long-license)s
"""%(distname)s entity's classes"""