Opened 12 years ago
Last modified 12 years ago
#9786 closed defect
'Environment' object has no attribute 'db_query' trying to do a multireposearch reindex_all — at Version 2
Reported by: | patrick | Owned by: | ejucovy |
---|---|---|---|
Priority: | normal | Component: | MultiRepoSearchPlugin |
Severity: | normal | Keywords: | |
Cc: | Ryan J Ollos | Trac Release: | 0.12 |
Description (last modified by )
I'm running Trac 0.12.2 (which is an upgrade from 0.11). There is an SVN repo and a git repo attached and I would like to be able to search both.
The installation process went fine but when trying to run "multireposearch reindex_all" i get an error:
AttributeError: 'Environment' object has no attribute 'db_query'
I'm running this on Arch linux and python 2.7. Please let me know if there is any more info I can provide.
Change History (3)
comment:1 Changed 12 years ago by
Status: | new → assigned |
---|
comment:2 Changed 12 years ago by
Cc: | Ryan J Ollos added; anonymous removed |
---|---|
Description: | modified (diff) |
Changed 12 years ago by
Attachment: | 0.12-compat.diff added |
---|
Note: See
TracTickets for help on using
tickets.
Thanks for the report. Looks like I accidentally used a Trac database API which is new in the unreleased 0.13 line -- which is what I developed the plugin against. (http://trac.edgewall.org/wiki/TracDev/DatabaseApi#Trac0.13API)
The fix for this should be simple, but I suspect I did this in other places in the code as well -- so I'll try to catch them all and post a patch here shortly.