changeset 5003:3277ee13b6c7

Xapian2009: System info uses XapianSearch to access information about xapian index.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Thu, 13 Aug 2009 22:46:34 +0200
parents e64a9fe80f6d
children bb2317d4984b
files MoinMoin/macro/SystemInfo.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/SystemInfo.py	Wed Aug 12 20:33:20 2009 +0200
+++ b/MoinMoin/macro/SystemInfo.py	Thu Aug 13 22:46:34 2009 +0200
@@ -127,7 +127,7 @@
         row(_('Local extension parsers'),
             ', '.join(wikiutil.wikiPlugins('parser', self.macro.cfg)) or nonestr)
 
-        from MoinMoin.search.builtin import Search
+        from MoinMoin.search.builtin import XapianSearch
         xapState = (_('Disabled'), _('Enabled'))
         idxState = (_('index available'), _('index unavailable'))
 
@@ -142,7 +142,7 @@
         xapRow += ', %s' % xapVersion
 
         if xapian and xapian_enabled:
-            idx = Search._xapianIndex(request)
+            idx = XapianSearch._xapianIndex(request)
             available = idx and idxState[0] or idxState[1]
             mtime = _('last modified: %s') % (idx and
                 request.user.getFormattedDateTime(idx.mtime()) or _('N/A'))