changeset 1448:4012f0814295

optional excluding of system pages
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 21 Aug 2006 18:16:15 +0200
parents 2e4491ea9572
children e219092e1a0d
files MoinMoin/action/fullsearch.py MoinMoin/macro/AdvancedSearch.py
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/fullsearch.py	Mon Aug 21 18:14:16 2006 +0200
+++ b/MoinMoin/action/fullsearch.py	Mon Aug 21 18:16:15 2006 +0200
@@ -72,7 +72,7 @@
                 [request.cfg.language_default])[0]
         mimetype = request.form.get('mimetype', [0])[0]
         includeunderlay = request.form.get('includeunderlay', [0])[0]
-        onlysystempages = request.form.get('onlysystempages', [0])[0]
+        nosystempages = request.form.get('nosystempages', [0])[0]
         historysearch = request.form.get('historysearch', [0])[0]
 
         mtime = request.form.get('mtime', [''])[0]
@@ -96,8 +96,8 @@
             needle += 'mimetype:%s ' % mimetype
         if not includeunderlay:
             needle += '-domain:underlay '
-        if onlysystempages:
-            needle += 'domain:system '
+        if nosystempages:
+            needle += '-domain:system '
         if categories:
             needle += '(%s) ' % ' or '.join(['category:%s' % cat
                 for cat in word_re.findall(categories)])
--- a/MoinMoin/macro/AdvancedSearch.py	Mon Aug 21 18:14:16 2006 +0200
+++ b/MoinMoin/macro/AdvancedSearch.py	Mon Aug 21 18:16:15 2006 +0200
@@ -94,8 +94,8 @@
                 _('Case-sensitive search')),
                 ('', '<input type="checkbox" name="includeunderlay" value="1" checked>%s'
                     '</input>' % _('Include underlay')),
-                ('', '<input type="checkbox" name="onlysystempages" value="1">%s'
-                    '</input>' % _('Only system pages')),
+                ('', '<input type="checkbox" name="nosystempages" value="1">%s'
+                    '</input>' % _('No system pages')),
                 ('', '<input type="checkbox" name="historysearch"value="1"%s>%s'
                     '</input>' %
                     (not macro.request.cfg.xapian_index_history and