heat/heat/engine
Steve Baker 67f4f60815 Get db session from the context.
The aim is to use a single sqlalchemy session for an RPC request.

The context object passed to EngineAPI methods is actually an RpcContext
which contains the same data as the RequestContext. The @request_context
decorator turns this back into a RequestContext which can now have other
behaviours added to it.

RequestContext now has a lazy loaded session attribute.

Save calls on created entities need to be passed the shared session.

Change-Id: Ied4e66deaca205362b84fb698f75cc872886607d
2012-11-22 08:15:05 +13:00
..
resources Get db session from the context. 2012-11-22 08:15:05 +13:00
__init__.py Fix a heap of pep8 errors 2012-04-16 17:07:07 +10:00
api.py WatchRule refer to stack by id not name 2012-11-19 22:26:20 +00:00
auth.py Remove unused imports 2012-11-19 16:11:50 +11:00
clients.py Move client connection out of resources.py. 2012-11-08 15:49:29 +13:00
dependencies.py Do proper dependency calculations 2012-06-15 11:29:08 +02:00
identifier.py Add identifiers for resources 2012-11-15 21:14:29 +01:00
parameters.py Implement NoEcho for parameters 2012-10-31 20:18:43 +01:00
parser.py Get db session from the context. 2012-11-22 08:15:05 +13:00
rpcapi.py Remove unused imports 2012-11-19 16:11:50 +11:00
service.py Get db session from the context. 2012-11-22 08:15:05 +13:00
template.py Put the Template class in its own file 2012-10-31 20:18:42 +01:00
timestamp.py Move Timestamp code to separate file 2012-10-25 22:28:38 +02:00
watchrule.py heat engine allow WatchRule load() from DB object 2012-11-19 22:26:20 +00:00