def __connect_to_bucket(self):
from boto.s3.connection import S3Connection
from boto.s3.connection import OrdinaryCallingFormat
if self.verbose:
print "DEBUG: Setting up S3Connection to", \
self.host+":"+self.bucket_name
self.conn = S3Connection(
host=self.host,
calling_format=OrdinaryCallingFormat()
)
self.bucket = self.conn.get_bucket(self.bucket_name, validate=False)
评论列表
文章目录