def __init__(
            self,
            bucket=None,
            prefix=None,
            account=None,
            upstream=None,
            **kwargs):
        '''Init a new S3Cache Cache

        '''
        from boto.gs.connection import GSConnection

        super(
            S3Cache,
            self).__init__(
            upstream=upstream)  # Skip parent __init__

        self.is_remote = False
        self.access_key = account['access']
        self.secret = account['secret']
        self.project = account['project']
        self.bucket_name = bucket
        self.prefix = prefix

        self.conn = GSConnection(self.access_key, self.secret, is_secure=False)
        self.bucket = self.conn.get_bucket(self.bucket_name)
def __init__ ( self , bucket = None , prefix = None , account = None , upstream = None , ** kwargs ) : from boto . gs . connection import GSConnection super ( S3Cache , self ) . __init__ ( upstream = upstream ) self . is_remote = False self . access_key = account [ 'access' ] self . secret = account [ 'secret' ] self . project = account [ 'project' ] self . bucket_name = bucket self . prefix = prefix self . conn = GSConnection ( self . access_key , self . secret , is_secure = False ) self . bucket = self . conn . get_bucket ( self . bucket_name )
Init a new S3Cache Cache