Merge "Define context.roles with base class"

This commit is contained in:
Jenkins 2016-06-29 13:04:08 +00:00 committed by Gerrit Code Review
commit ab30cdec84
2 changed files with 3 additions and 8 deletions

View File

@ -37,13 +37,8 @@ class RequestContext(context.RequestContext):
show_deleted=show_deleted,
request_id=request_id,
resource_uuid=resource_uuid,
overwrite=overwrite)
self.roles = roles or []
def to_dict(self):
d = super(RequestContext, self).to_dict()
d['roles'] = self.roles
return d
overwrite=overwrite,
roles=roles)
@classmethod
def from_dict(cls, values):

View File

@ -14,7 +14,7 @@ PasteDeploy>=1.5.0 # MIT
pecan>=1.0.0 # BSD
WSME>=0.8 # MIT
oslo.config>=3.7.0 # Apache-2.0
oslo.context>=0.2.0 # Apache-2.0
oslo.context>=2.2.0 # Apache-2.0
oslo.concurrency>=3.5.0 # Apache-2.0
oslo.db>=4.1.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0