#794: Whoosh version should be shown under System Information
----------------------+----------------------------
  Reporter:  rjollos  |      Owner:  devenderbindal
      Type:  defect   |     Status:  new
  Priority:  major    |  Milestone:  next 0.x
 Component:  search   |    Version:
Resolution:           |   Keywords:  starter
----------------------+----------------------------

Comment (by rjollos):

 Some implementation hints:
  * It looks like the Whoosh version can be retrieved by:
  {{{#!python
 >>> import whoosh
 >>> whoosh.__version__
 (2, 6, 0)
 }}}
  * `ISystemInfoProvider` from `trac.env` needs to be implemented in
 `whoosh_backend.py`. There are numerous example in the codebase and also
 
[http://www.edgewall.org/docs/branches-1.0-stable/html/api/trac_env.html#trac.env.ISystemInfoProvider
 API documentation] on the interface.
  {{{#!sh
 $ grep -r "trac.env.ISystemInfoProvider\|import.*ISystemInfoProvider"
 --exclude-dir=.svn
 bloodhound_multiproduct/multiproduct/env.py:
 implements(trac.env.ISystemInfoProvider, IPermissionRequestor)
 trac/tracopt/mimeview/silvercity.py:from trac.env import
 ISystemInfoProvider
 trac/tracopt/versioncontrol/svn/svn_fs.py:from trac.env import
 ISystemInfoProvider
 trac/doc/api/trac_env.rst:.. autoclass :: trac.env.ISystemInfoProvider
 trac/doc/api/trac_env.rst:   See also
 :extensionpoints:`trac.env.ISystemInfoProvider`
 trac/trac/mimeview/pygments.py:from trac.env import ISystemInfoProvider
 trac/trac/mimeview/rst.py:from trac.env import ISystemInfoProvider
 trac/trac/web/chrome.py:from trac.env import IEnvironmentSetupParticipant,
 ISystemInfoProvider
 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/794#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to