Merge "Update calling super class constructor style in proxy controllers"

This commit is contained in:
Jenkins 2017-03-14 07:38:19 +00:00 committed by Gerrit Code Review
commit 612a6bb976
4 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ class AccountController(Controller):
server_type = 'Account'
def __init__(self, app, account_name, **kwargs):
Controller.__init__(self, app)
super(AccountController, self).__init__(app)
self.account_name = unquote(account_name)
if not self.app.allow_account_management:
self.allowed_methods.remove('PUT')

View File

@ -38,7 +38,7 @@ class ContainerController(Controller):
'x-versions-location']
def __init__(self, app, account_name, container_name, **kwargs):
Controller.__init__(self, app)
super(ContainerController, self).__init__(app)
self.account_name = unquote(account_name)
self.container_name = unquote(container_name)

View File

@ -28,7 +28,7 @@ class InfoController(Controller):
def __init__(self, app, version, expose_info, disallowed_sections,
admin_key):
Controller.__init__(self, app)
super(InfoController, self).__init__(app)
self.expose_info = expose_info
self.disallowed_sections = disallowed_sections
self.admin_key = admin_key

View File

@ -124,7 +124,7 @@ class BaseObjectController(Controller):
def __init__(self, app, account_name, container_name, object_name,
**kwargs):
Controller.__init__(self, app)
super(BaseObjectController, self).__init__(app)
self.account_name = unquote(account_name)
self.container_name = unquote(container_name)
self.object_name = unquote(object_name)