changeset 5057:e30bd336a8f3

fix XapianIndex import at some forgotten places
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 30 Aug 2009 13:32:55 +0200
parents c0b78af148e7
children bc97e2bed238
files MoinMoin/action/AttachFile.py MoinMoin/search/_tests/test_search.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Sun Aug 30 03:31:25 2009 +0200
+++ b/MoinMoin/action/AttachFile.py	Sun Aug 30 13:32:55 2009 +0200
@@ -689,8 +689,8 @@
     _addLogEntry(request, 'ATTDEL', pagename, filename)
 
     if request.cfg.xapian_search:
-        from MoinMoin.search.Xapian import Index
-        index = Index(request)
+        from MoinMoin.search.Xapian import XapianIndex
+        index = XapianIndex(request)
         if index.exists:
             index.remove_item(pagename, filename)
 
--- a/MoinMoin/search/_tests/test_search.py	Sun Aug 30 03:31:25 2009 +0200
+++ b/MoinMoin/search/_tests/test_search.py	Sun Aug 30 13:32:55 2009 +0200
@@ -403,12 +403,12 @@
     def test_index_in_new_thread(self):
         """ search: kicks off indexing for a single pages in Xapian """
         try:
-            from MoinMoin.search.Xapian import Index
+            from MoinMoin.search.Xapian import XapianIndex
         except ImportError:
             py.test.skip('xapian is not installed')
 
         nuke_xapian_index(self.request)
-        index = Index(self.request)
+        index = XapianIndex(self.request)
         index.indexPagesInNewThread(mode='add')
 
         nuke_xapian_index(self.request)