changeset 4357:1f7b0a55955b

search results: link to 'view' rendering of found attachments
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 29 Sep 2008 21:32:16 +0200
parents 361c6d95ebf3
children a952d07dea69
files MoinMoin/search/results.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/results.py	Sun Sep 28 17:28:08 2008 +0200
+++ b/MoinMoin/search/results.py	Mon Sep 29 21:32:16 2008 +0200
@@ -333,7 +333,7 @@
                 if page.attachment:
                     querydict = {
                         'action': 'AttachFile',
-                        'do': 'get',
+                        'do': 'view',
                         'target': page.attachment,
                     }
                 elif page.page.rev and page.page.rev != page.page.getRevList()[0]:
@@ -416,7 +416,7 @@
                     fmt_context = ""
                     querydict = {
                         'action': 'AttachFile',
-                        'do': 'get',
+                        'do': 'view',
                         'target': page.attachment,
                     }
                 elif page.page_name.startswith('FS/'): # XXX FS hardcoded