summaryrefslogtreecommitdiffstats
path: root/nova/context.py
diff options
context:
space:
mode:
authorKen Pepple <ken.pepple@gmail.com>2011-04-21 10:29:11 -0700
committerKen Pepple <ken.pepple@gmail.com>2011-04-21 10:29:11 -0700
commitf205dcf659697adaae0d85a042ea2ea7ffe5c1c7 (patch)
treeb2da90f0cb240450bc30b9d6ebc3c703145b9bb6 /nova/context.py
parentdfcdafde2dc202aa3325cd1cea8d809f56fdde57 (diff)
parentc796920198305e101c75bcbf4e027ba9e81975d7 (diff)
downloadnova-f205dcf659697adaae0d85a042ea2ea7ffe5c1c7.tar.gz
nova-f205dcf659697adaae0d85a042ea2ea7ffe5c1c7.tar.xz
nova-f205dcf659697adaae0d85a042ea2ea7ffe5c1c7.zip
rebase 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'):