heat/heat/engine/resources
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
..
quantum Rename instance_id to resource_id. 2012-11-08 16:39:18 +13:00
__init__.py Move resources into a separate sub-package 2012-10-25 22:31:06 +02:00
autoscaling.py Rename instance_id to resource_id. 2012-11-08 16:39:18 +13:00
cloud_watch.py Make CloudWatchAlarm names unique per-tenant 2012-11-19 22:26:20 +00:00
dbinstance.py Move resources into a separate sub-package 2012-10-25 22:31:06 +02:00
eip.py Rename instance_id to resource_id. 2012-11-08 16:39:18 +13:00
instance.py Remove unused statements/local assignments 2012-11-20 09:27:10 +11:00
loadbalancer.py Remove unused imports 2012-11-19 16:11:50 +11:00
properties.py Make Boolean property a bool type. 2012-11-06 15:39:23 +13:00
register.py Add a set of native quantum resource types. 2012-11-05 16:11:04 +13:00
resource.py Get db session from the context. 2012-11-22 08:15:05 +13:00
s3.py Rename instance_id to resource_id. 2012-11-08 16:39:18 +13:00
security_group.py Remove unused imports 2012-11-19 16:11:50 +11:00
stack.py Remove unused imports 2012-11-19 16:11:50 +11:00
user.py Rename instance_id to resource_id. 2012-11-08 16:39:18 +13:00
volume.py Rename instance_id to resource_id. 2012-11-08 16:39:18 +13:00
wait_condition.py Rename instance_id to resource_id. 2012-11-08 16:39:18 +13:00