changeset 1876:19305b7bca4d gae

improved a comment, removed unneeded wikiconfig_gae entry
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 15 Dec 2012 22:54:55 +0100
parents 7946089b94f4
children cf92bfbb1550
files MoinMoin/items/content.py wikiconfig_gae.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/items/content.py	Sun Dec 16 00:09:30 2012 +0530
+++ b/MoinMoin/items/content.py	Sat Dec 15 22:54:55 2012 +0100
@@ -426,8 +426,8 @@
             raise StorageError("tried to add unexpected member {0!r} to container item {1!r}".format(name, self.name))
         if isinstance(name, unicode):
             name = name.encode('utf-8')
-        # cache is used to store data temporarily without touching filesystem.
-        # tempfile stdlib module can not be used on GAE due to that restriction.
+        # The cache is used to store data temporarily. We can't use the tempfile
+        # stdlib module as it touches the filesystem and that is not possible on GAE.
         tar_storage_key = cache_key(usage='tar_storage', name=self.name)
         cache_contents = app.cache.get(tar_storage_key)
         if cache_contents is None:
--- a/wikiconfig_gae.py	Sun Dec 16 00:09:30 2012 +0530
+++ b/wikiconfig_gae.py	Sat Dec 15 22:54:55 2012 +0100
@@ -85,7 +85,6 @@
 #LOGGER_NAME = 'MoinMoin'
 #config for flask-cache:
 CACHE_TYPE = 'gaememcached'
-#CACHE_DIR = '/path/to/flask-cache-dir'
 
 # DEVELOPERS! Do not add your configuration items here - you could accidentally
 # commit them! Instead, create a wikiconfig_local.py file containing this: