Modify ↓
Opened 17 years ago
Closed 16 years ago
#2741 closed defect (fixed)
SearchAllPlugin does not load in 0.11 Trac due to import error
Reported by: | Matt Callaghan | Owned by: | Álvaro Iradier |
---|---|---|---|
Priority: | normal | Component: | SearchAllPlugin |
Severity: | blocker | Keywords: | |
Cc: | Álvaro Iradier | Trac Release: | 0.11 |
Description
Hey when I try to install SearchAllPlugin it doesn't work. (no checkbox)
Looking at the log file I see:
2008-03-14 14:38:35,739 Trac[loader] ERROR: Skipping "tracsearchall = tracsearchall": (can't import "cannot import name _open_environment")
Is this an easy fix? (I seem to recall these same types of issues with other plugins about the _open_environment is supposed to be changed to open_environment in 0.11.
Attachments (0)
Change History (5)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Confirmed! It works. Should this be applied to the trunk for 0.11 compatibility or would this have a negative effect on backwards compatibility with 0.10?
comment:3 Changed 17 years ago by
Summary: | SearchAllPlugin in 0.11b1 Trac → SearchAllPlugin does not load 0.11 Trac due to import error |
---|
Confirmed this is the same situation for 0.11rc1. Alesh: here is actually a line already to import open_environment
, so you just need to remove that line.
-
tracsearchall/searchall.py
1 1 ## AMB SearchAll - Search multiple trac projects at once 2 2 3 3 from trac.core import * 4 from trac.web.main import _open_environment5 4 from trac.web.href import Href 6 5 try: 7 6 from trac.search import ISearchSource, shorten_result
comment:4 Changed 17 years ago by
Summary: | SearchAllPlugin does not load 0.11 Trac due to import error → SearchAllPlugin does not load in 0.11 Trac due to import error |
---|
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
All I did to get SearchAllPlugin to work is make the following change to tracsearchall/searchall.py:
i.e. just change "_open_environment" to "open_environment" and it should work in 0.11