diff options
author | Dan Prince <dan.prince@rackspace.com> | 2011-05-26 09:05:14 -0400 |
---|---|---|
committer | Dan Prince <dan.prince@rackspace.com> | 2011-05-26 09:05:14 -0400 |
commit | a021b43b7d45f8cc803721002a0b2e7d9ea9a06d (patch) | |
tree | 6c3f6274d91a511a04a322a46d8678f4ad18d71a /nova/context.py | |
parent | 9d2513ea3a6d586e1fe3deae778a02bb089b9a5e (diff) | |
parent | db18a792414240cbdb1221d0e79e8a63313f103e (diff) | |
download | nova-a021b43b7d45f8cc803721002a0b2e7d9ea9a06d.tar.gz nova-a021b43b7d45f8cc803721002a0b2e7d9ea9a06d.tar.xz nova-a021b43b7d45f8cc803721002a0b2e7d9ea9a06d.zip |
Merge w/ trunk.
Diffstat (limited to 'nova/context.py')
-rw-r--r-- | nova/context.py | 10 |
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'): |