コード例 #1
0
ファイル: obj.py プロジェクト: GuillaumeDelaporte/oio-swift
 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)
コード例 #2
0
 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')