Commits

Anonymous committed 5b40c64 Draft

0.8dev: Added Whoosh version to //SystemInfo// table. Refs #794.

Patch by devenderbindal.

  • Participants
  • Parent commits 159a7d2

Comments (0)

Files changed (1)

bloodhound_search/bhsearch/whoosh_backend.py

 
 from trac.core import Component, implements, TracError
 from trac.config import Option, IntOption
+from trac.env import ISystemInfoProvider
 from trac.util.datefmt import utc
 
 import whoosh
     """
     Implements Whoosh SearchBackend interface
     """
-    implements(ISearchBackend)
+    implements(ISearchBackend, ISystemInfoProvider)
 
     index_dir_setting = Option(
         BHSEARCH_CONFIG_SECTION,
         else:
             self.index = None
 
-    #ISearchBackend methods
+    # ISystemInfoProvider methods
+
+    def get_system_info(self):
+        yield 'Whoosh', whoosh.versionstring()
+
+    # ISearchBackend methods
+
     def start_operation(self):
         return self._create_writer()