summaryrefslogtreecommitdiffstats
path: root/nova/context.py
diff options
context:
space:
mode:
authorJustin SB <justin@fathomdb.com>2011-05-19 21:03:15 -0700
committerJustin SB <justin@fathomdb.com>2011-05-19 21:03:15 -0700
commit732eb413cc404ba4c1ad5a2581c5efb864874d3b (patch)
treea7f0aecf632383206e01dc3a4f907cff4fc82bc7 /nova/context.py
parent4ab6962fb7461573119297aa3508f7df8c6efa42 (diff)
parent330b3febe9970a0358cbc145ea88faeb3da121d5 (diff)
downloadnova-732eb413cc404ba4c1ad5a2581c5efb864874d3b.tar.gz
nova-732eb413cc404ba4c1ad5a2581c5efb864874d3b.tar.xz
nova-732eb413cc404ba4c1ad5a2581c5efb864874d3b.zip
Merged with trunk
Diffstat (limited to 'nova/context.py')
-rw-r--r--nova/context.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/nova/context.py b/nova/context.py
index 0256bf448..c113f7ea7 100644
--- a/nova/context.py
+++ b/nova/context.py
@@ -16,9 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""
-RequestContext: context for requests that persist through all of nova.
-"""
+"""RequestContext: context for requests that persist through all of nova."""
import datetime
import random
@@ -28,6 +26,12 @@ from nova import utils
class RequestContext(object):
+ """Security context and request information.
+
+ Represents the user taking a given action within the system.
+
+ """
+
def __init__(self, user, project, is_admin=None, read_deleted=False,
remote_address=None, timestamp=None, request_id=None):
if hasattr(user, 'id'):