Modify

Opened 6 years ago

Closed 16 months ago

#4691 closed defect (fixed)

ISearchSource needs different import for 0.11

Reported by: debacle@… Owned by: coderanger
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 5 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 16 months ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.