Source

wheezy.captcha / demos / app.py

Diff from to

File demos/app.py

 
 
 cache = MemoryCache()
-cache_factory = lambda: cache
 
 captcha_image = captcha(drawings=[
     background(),
 ])
 
 
-captcha = CaptchaContext(captcha_image, cache_factory)
+captcha = CaptchaContext(captcha_image, cache)
 captcha_handler = captcha.create_handler(quality=65)
 
 
 
 
 options = {
-    'http_cache_factory': cache_factory
+    'http_cache': cache
 }
 main = WSGIApplication([
     bootstrap_http_defaults,