changeset 3871:6e7ef632d9b3

cache action: don't let put() return the cache url (useless, most code will have a call to url() anyway)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 19 Jul 2008 09:52:44 +0200
parents 3a81ee4b66e8
children 9eb4ffbe654d
files MoinMoin/action/
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/	Fri Jul 18 10:00:14 2008 +0200
+++ b/MoinMoin/action/	Sat Jul 19 09:52:44 2008 +0200
@@ -6,7 +6,7 @@
     This can be used e.g. for all image generating extensions:
     E.g. a thumbnail generating extension just uses cache.put() to
     write the thumbnails into the cache and emits <img src="cache_url">
-    to display them. cache_url is returned by put() or url().
+    to display them. cache_url is returned by url().
     IMPORTANT: use some non-guessable key derived from your source content,
                use cache.key() if you don't have something better.
@@ -101,7 +101,6 @@
     @param content_type: content-type header value (str, default: autodetect from filename)
     @param last_modified: last modified timestamp (int, default: autodetect)
     @param content_length: data length for content-length header (int, default: autodetect)
-    @return: URL of cached object
     import os.path
     from MoinMoin.util import timefuncs
@@ -138,8 +137,6 @@
     meta_cache = caching.CacheEntry(request, cache_arena, key+'.meta', cache_scope, do_locking=do_locking, use_pickle=True)
     meta_cache.update((last_modified, headers))
-    return url(request, key, do='get')
 def exists(request, key, strict=False):