예제 #1
0
파일: storage_vows.py 프로젝트: Bladrak/aws
      def topic(self):
        self.conn = S3Connection()
        self.conn.create_bucket(s3_bucket)

        config=Config(STORAGE_BUCKET=s3_bucket, STORES_CRYPTO_KEY_FOR_EACH_IMAGE=True)
        storage = Storage(Context(config=config, server=get_server('ACME-SEC')))
        return storage.get_crypto(IMAGE_URL % '9999')
예제 #2
0
파일: storage_vows.py 프로젝트: Bladrak/aws
      def topic(self):
        self.conn = S3Connection()
        self.conn.create_bucket(s3_bucket)

        config=Config(STORAGE_BUCKET=s3_bucket)
        storage = Storage(Context(config=config, server=get_server('ACME-SEC')))
        storage.put(IMAGE_URL % '9998', IMAGE_BYTES)
        storage.put_crypto(IMAGE_URL % '9998')
        return storage.get_crypto(IMAGE_URL % '9998')