changeset 3545:7e4b68c11362

xapian search: fix AttributeError that happened when trying to access an attribute only used with xapian search (but regex search is not done by xapian)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 29 Apr 2008 16:25:39 +0200
parents 8760343345fc
children c9494979fe7a
files MoinMoin/search/builtin.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/builtin.py	Mon Apr 28 18:22:15 2008 +0200
+++ b/MoinMoin/search/builtin.py	Tue Apr 29 16:25:39 2008 +0200
@@ -468,8 +468,7 @@
 
         # when xapian was used, we can estimate the numer of matches
         # Note: hits can't be estimated by xapian with historysearch enabled
-        if not self.request.cfg.xapian_index_history and \
-                self.request.cfg.xapian_search:
+        if not self.request.cfg.xapian_index_history and hasattr(self, '_xapianMset'):
             self.sort = None
             mset = self._xapianMset
             estimated_hits = (