changeset 867:5cb34cdcacc8

fixes to filesystem FS/* search
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 20 Jun 2006 21:09:11 +0200
parents b270396abba9
children 01750f3c867c
files MoinMoin/search.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search.py	Tue Jun 20 21:07:03 2006 +0200
+++ b/MoinMoin/search.py	Tue Jun 20 21:09:11 2006 +0200
@@ -1052,6 +1052,9 @@
                         'do': 'get',
                         'target': page.attachment,
                     }
+                elif page.page_name.startswith('FS/'): # XXX FS hardcoded
+                    fmt_context = ""
+                    querydict = None
                 else:
                     fmt_context = self.formatContext(page, context, maxlines)
                     querydict = None
@@ -1416,7 +1419,7 @@
                 page = Page(self.request, pagename)
                 if attachment:
                     if pagename == fs_rootpage: # not really an attachment
-                        page = Page(self.request, "%s%s" % (fs_rootpage, attachment))
+                        page = Page(self.request, "%s/%s" % (fs_rootpage, attachment))
                         hits.append((wikiname, page, None, None))
                     else:
                         hits.append((wikiname, page, attachment, None))