summaryrefslogtreecommitdiffstats
path: root/nova/context.py
diff options
context:
space:
mode:
authorKei Masumoto <masumotok@nttdata.co.jp>2011-05-25 17:03:14 +0900
committerKei Masumoto <masumotok@nttdata.co.jp>2011-05-25 17:03:14 +0900
commit2adf37233cb1b145bcb95e20bec53ea186558265 (patch)
tree4d8f3f8d05b1be95eab804147efb67b712c7263e /nova/context.py
parent8c66d79a41044837a0865b1a706dd89e788597d1 (diff)
parent02b97593d0b3ee60ab879e5184be742ef3ac1b64 (diff)
merged recent 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'):