--- a/thirdparty/google_appengine/google/appengine/api/memcache/memcache_stub.py Sat Sep 05 14:04:24 2009 +0200
+++ b/thirdparty/google_appengine/google/appengine/api/memcache/memcache_stub.py Sun Sep 06 23:31:53 2009 +0200
@@ -229,7 +229,16 @@
key = request.key()
entry = self._GetKey(namespace, key)
if entry is None:
- return
+ if not request.has_initial_value():
+ return
+ if namespace not in self._the_cache:
+ self._the_cache[namespace] = {}
+ self._the_cache[namespace][key] = CacheEntry(str(request.initial_value()),
+ expiration=0,
+ flags=0,
+ gettime=self._gettime)
+ entry = self._GetKey(namespace, key)
+ assert entry is not None
try:
old_value = long(entry.value)