changeset 67:e22ac6902d90

arnica_slides.send_cache_file: fixed missing _ and docstrings
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 04 Jun 2008 20:27:23 +0200
parents 7d866c4324f4
children f0fed03fd6f7
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Wed Jun 04 20:22:19 2008 +0200
+++ b/data/plugin/action/arnica_slides.py	Wed Jun 04 20:27:23 2008 +0200
@@ -30,6 +30,13 @@
 action_name = __name__.split('.')[-1]
 
 def send_cache_file(request, pagename, arena_dir, target):
+    """ sends a cached thumbnail or webnail to the browser 
+    @param request: request object
+    @param pagenam:  the name of the page
+    @param arena_dir: the name of the cache arena
+    @target: the name of the file in the cache arena
+    """
+    _ = request.getText
     msg = None
     if not request.user.may.read(pagename):
         msg = _('You are not allowed to view attachments of this page.')