~rlane/nova/lp773690

« back to all changes in this revision

Viewing changes to nova/context.py

  • Committer: rlane at wikimedia
  • Date: 2011-04-29 22:30:40 UTC
  • mfrom: (382.1.655 nova)
  • Revision ID: rlane@wikimedia.org-20110429223040-i0x3ds9eqwrabyru
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    License for the specific language governing permissions and limitations
17
17
#    under the License.
18
18
 
19
 
"""
20
 
RequestContext: context for requests that persist through all of nova.
21
 
"""
 
19
"""RequestContext: context for requests that persist through all of nova."""
22
20
 
23
21
import datetime
24
22
import random
28
26
 
29
27
 
30
28
class RequestContext(object):
 
29
    """Security context and request information.
 
30
 
 
31
    Represents the user taking a given action within the system.
 
32
 
 
33
    """
 
34
 
31
35
    def __init__(self, user, project, is_admin=None, read_deleted=False,
32
36
                 remote_address=None, timestamp=None, request_id=None):
33
37
        if hasattr(user, 'id'):