Ticket #491 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Implementing Searches

Reported by: jon@licq.org Assigned to: Blackhex
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description

Attached is a file that can be used to implement the search interface. It will add a Discussion checkbox to the search page and the text that will be searched is the topic's title and body. Also, any replies will have their body searched as well.

I am just learning python, so there may be some better ways to do this, but it works for me.

Make sure to modify the setup.py to have the entry_oints be like this:

  entry_points = {'trac.plugins': ['TracDiscussion.core = tracdiscussion.core',
    'TracDiscussion.init = tracdiscussion.init',
    'TracDiscussion.wiki = tracdiscussion.wiki',
    'TracDiscussion.timeline = tracdiscussion.timeline',
    'TracDiscussion.admin = tracdiscussion.admin',
    'TracDiscussion.search = tracdiscussion.search']},

I also translated this to Japanese, if anyone needs it I can post it as well.

Attachments

search.py (1.5 kB) - added by jon@licq.org on 07/06/06 00:10:22.
search.2.py (1.5 kB) - added by jon@licq.org on 07/06/06 00:29:16.
minor fix

Change History

07/06/06 00:10:22 changed by jon@licq.org

  • attachment search.py added.

07/06/06 00:29:16 changed by jon@licq.org

  • attachment search.2.py added.

minor fix

07/06/06 15:25:39 changed by Blackhex

  • status changed from new to closed.
  • resolution set to fixed.

Implemented in changeset 1006. Thank you for your interest and idea.


Add/Change #491 (Implementing Searches)




Change Properties
Action