Opened 12 years ago

Closed 12 years ago

#491 closed enhancement (fixed)

Implementing Searches

Reported by: jon@… Owned by: Radek Bartoň
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9


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 to have the entry_oints be like this:

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

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

Attachments (2) (1.5 KB) - added by jon@… 12 years ago. (1.5 KB) - added by jon@… 12 years ago.
minor fix

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by jon@…

Attachment: added

Changed 12 years ago by jon@…

Attachment: added

minor fix

comment:1 Changed 12 years ago by Radek Bartoň

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Radek Bartoň.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.