Modify

Opened 8 years ago

Closed 4 years ago

#4691 closed defect (fixed)

ISearchSource needs different import for 0.11

Reported by: Martin Owned by: Noah Kantrowitz
Priority: normal Component: FilenameSearchPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Plugin filenamesearch didn't work on trac 0.11.1 until I changed the import into:

try:
    from trac.search import ISearchSource
except ImportError:
    from trac.Search import ISearchSource

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by tomasz.kloc

Thanks for hint. In trac 0.11.5 plugin works only when I change the import to:

try:
    from trac.Search import ISearchSource
except ImportError:
    from trac.search import ISearchSource

Originally line was:

from trac.search import ISearchSource

file: filenamesearch/web_ui.py

comment:2 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

(In [13221]) Fixes #4691: Added 0.11 compatibility to import of search module. Thanks to debacle@… for the patch.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
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.