changeset 2239:0232aa023881

fixed encoding/decoding for surge-log data, fixes leftoever surge-logXXXXX.tmp files in data/cache/surgeprotect (ported from 1.5 changeset 817: 4b9425f89248)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 14 Jun 2007 14:00:38 +0200
parents 529a3c5e6d0e
children ea7600ae756a
files MoinMoin/request/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request/__init__.py	Thu Jun 14 13:55:40 2007 +0200
+++ b/MoinMoin/request/__init__.py	Thu Jun 14 14:00:38 2007 +0200
@@ -288,7 +288,7 @@
 
         try:
             # if we have common farm users, we could also use scope='farm':
-            cache = caching.CacheEntry(self, 'surgeprotect', 'surge-log', scope='wiki')
+            cache = caching.CacheEntry(self, 'surgeprotect', 'surge-log', scope='wiki', use_encode=True)
             if cache.exists():
                 data = cache.content()
                 data = data.split("\n")