def __init__(self, app, version, expose_info, disallowed_sections, admin_key): Controller.__init__(self, app) self.expose_info = expose_info self.disallowed_sections = disallowed_sections self.admin_key = admin_key self.allowed_hmac_methods = {'HEAD': ['HEAD', 'GET'], 'GET': ['GET']}
def __init__(self, app, account_name, **kwargs): Controller.__init__(self, app) #将ascii形式的字符转换成unicode形式字符,url解码 self.account_name = unquote(account_name) if not self.app.allow_account_management: self.allowed_methods.remove('PUT') self.allowed_methods.remove('DELETE')
def __init__(self, app, account_name, **kwargs): Controller.__init__(self, app) print 'in __init__ of accountcontroller class' self.account_name = unquote(account_name) if not self.app.allow_account_management: self.allowed_methods.remove('PUT') self.allowed_methods.remove('DELETE')
def __init__(self, app, conf): Controller.__init__(self, app) self.conf = conf self.logger = get_logger(conf, log_route='ringinfo') self.swift_dir = self.conf.get('swift_dir', '/etc/swift') self.object_ring = Ring(self.swift_dir, ring_name='object') self.container_ring = Ring(self.swift_dir, ring_name='container') self.account_ring = Ring(self.swift_dir, ring_name='account')
def __init__(self, app, version, expose_info, disallowed_sections, admin_key): Controller.__init__(self, app) self.expose_info = expose_info self.disallowed_sections = disallowed_sections self.admin_key = admin_key self.allowed_hmac_methods = { 'HEAD': ['HEAD', 'GET'], 'GET': ['GET']}
def __init__(self, app, account_name, **kwargs): Controller.__init__(self, app) self.account_name = unquote(account_name) if not self.app.allow_account_management: self.allowed_methods.remove('PUT') self.allowed_methods.remove('DELETE')
def __init__(self, app, account_name, container_name, object_name, **kwargs): Controller.__init__(self, app) self.account_name = unquote(account_name) self.container_name = unquote(container_name) self.object_name = unquote(object_name)
def __init__(self, app, account_name, container_name, **kwargs): Controller.__init__(self, app) self.account_name = unquote(account_name) self.container_name = unquote(container_name)
def __init__(self, app, account_name, **kwargs): Controller.__init__(self, app) self.account_name = unquote(account_name)
def __init__(self, app, account_name, **kwargs): Controller.__init__(self, app) self.account_name = unquote(account_name) if not self.app.allow_account_management: self.allowed_methods.remove("PUT") self.allowed_methods.remove("DELETE")
def __init__(self, app, version, expose_info, disallowed_sections, admin_key): Controller.__init__(self, app) self.expose_info = expose_info self.disallowed_sections = disallowed_sections self.admin_key = admin_key self.allowed_hmac_methods = {"HEAD": ["HEAD", "GET"], "GET": ["GET"]}