-
Committer:
Tarmac
-
Author(s):
Vishvananda Ishaya
-
Date:
2010-10-14 21:18:51 UTC
-
mfrom:
(316.9.16 fix-context-deprecation)
-
Revision ID:
hudson@openstack.org-20101014211851-jnlzdl9k3sz0jipf
This branch modifies the fixes all of the deprecation warnings about empty context. It does this by adding the following fixes/features
* promotes api/context.py to context.py because it is used by the whole system
* adds more information to the context object
* passes the context through rpc
* adds a helper method for promoting to admin context (elevate())
* modifies most checks to use context.project_id instead of context.project.id to avoid
trips to the database
This included a lot of merge fixing and backporting from the anso deploy branch so some stuff may be broken. Right now it throws an Exception('die') in addition to the deprecation warning so we get a stack trace and can find any other deprecated calls. This needs some testing, especially of the openstack api.