From 6e54b5458bbee193725c8eec14489f208e79126c Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 26 May 2014 23:49:11 -0500 Subject: [PATCH] fixed 1929:cannot acess appadmin cache if you use redis as cache, thanks leonardo --- VERSION | 2 +- gluon/contrib/gae_memcache.py | 3 +++ gluon/contrib/redis_cache.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 532cbf1a..2ae02c75 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.9.5-trunk+timestamp.2014.05.26.23.42.22 +Version 2.9.5-trunk+timestamp.2014.05.26.23.47.54 diff --git a/gluon/contrib/gae_memcache.py b/gluon/contrib/gae_memcache.py index e20ce96e..d20c9f98 100644 --- a/gluon/contrib/gae_memcache.py +++ b/gluon/contrib/gae_memcache.py @@ -21,6 +21,9 @@ class MemcacheClient(object): self.request = request self.default_time_expire = default_time_expire + def initialize(self): + pass + def __call__( self, key, diff --git a/gluon/contrib/redis_cache.py b/gluon/contrib/redis_cache.py index 01b98d19..4475a82b 100644 --- a/gluon/contrib/redis_cache.py +++ b/gluon/contrib/redis_cache.py @@ -105,6 +105,9 @@ class RedisClient(object): self.r_server = redis.Redis(host=host, port=port, db=self.db, password=self.password) + def initialize(self): + pass + def __call__(self, key, f, time_expire=300, with_lock=None): if with_lock is None: with_lock = self.with_lock