bin/cubicweb-ctl
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 24 Mar 2014 11:57:23 +0100
changeset 9582 46ed25d38fe2
parent 0 b97547f5f1fa
child 12253 9165f4b7426b
permissions -rwxr-xr-x
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.

#!/usr/bin/env python
from cubicweb.cwctl import run
import sys
run(sys.argv[1:])