changeset 3855:5e35dd32656f

cache action: calculate action_name, more comments
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 Jul 2008 19:53:24 +0200
parents 30240e801a55
children 5079d2246367
files MoinMoin/action/cache.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/cache.py	Mon Jul 14 19:44:28 2008 +0200
+++ b/MoinMoin/action/cache.py	Mon Jul 14 19:53:24 2008 +0200
@@ -38,10 +38,10 @@
 from MoinMoin.util import filesys
 from MoinMoin.action import AttachFile
 
-action_name = 'cache'
+action_name = __name__.split('.')[-1]
 
 # Do NOT get this directly from request.form or user would be able to read any cache!
-cache_arena = 'sendcache'
+cache_arena = 'sendcache'  # just using action_name is maybe rather confusing
 cache_scope = 'wiki'
 do_locking = False