Esempio n. 1
0
 def topic(self):
     config = Config(
         REDIS_STORAGE_SERVER_PORT=6668, REDIS_STORAGE_SERVER_PASSWORD='******',
         STORES_CRYPTO_KEY_FOR_EACH_IMAGE=True
     )
     storage = RedisStorage(Context(config=config, server=get_server('ACME-SEC')))
     return storage.get_crypto(IMAGE_URL % 9999)
Esempio n. 2
0
 def topic(self):
     config = Config(REDIS_STORAGE_SERVER_PORT=6668,
                     REDIS_STORAGE_SERVER_PASSWORD='******',
                     STORES_CRYPTO_KEY_FOR_EACH_IMAGE=True)
     storage = RedisStorage(
         Context(config=config, server=get_server('ACME-SEC')))
     return storage.get_crypto(IMAGE_URL % 9999)
Esempio n. 3
0
 def topic(self):
     config = Config(REDIS_STORAGE_SERVER_PORT=6668,
                     REDIS_STORAGE_SERVER_PASSWORD='******')
     storage = RedisStorage(
         Context(config=config, server=get_server('ACME-SEC')))
     storage.put(IMAGE_URL % 5, IMAGE_BYTES)
     storage.put_crypto(IMAGE_URL % 5)
     return storage.get_crypto(IMAGE_URL % 5)
Esempio n. 4
0
 def topic(self):
     config = Config(REDIS_STORAGE_SERVER_PORT=6668, REDIS_STORAGE_SERVER_PASSWORD='******')
     storage = RedisStorage(Context(config=config, server=get_server('ACME-SEC')))
     storage.put(IMAGE_URL % 5, IMAGE_BYTES)
     storage.put_crypto(IMAGE_URL % 5)
     return storage.get_crypto(IMAGE_URL % 5)