Merge "Define context.roles with base class"
This commit is contained in:
commit
ab30cdec84
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user