Opened 19 years ago
Closed 19 years ago
#1700 closed defect (fixed)
Errors with the "component" commands from trac-admin
Reported by: | Emmanuel Blot | Owned by: | Matthew Good |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | admin/console | Version: | devel |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
'NoneType' object has no attribute 'get_db_cnx'
This happens (at least) with component list
and component rename
commands
w/ Trac trunk [1833]
Attachments (0)
Change History (7)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
However, if another module is invoked, such as permission list
, the environment is successfully created, then the next calls to the component module, such as component list
do work.
comment:4 by , 19 years ago
Owner: | changed from | to
---|---|
Summary: | Erros with the "component" commands from trac-admin → Errors with the "component" commands from trac-admin |
I think it comes from a regression introduced in [1831]:
Component management has been refactored, but the db_open()
method is not called anymore.
comment:5 by , 19 years ago
Owner: | changed from | to
---|
Oops, I thought Chris. was in charge of this one, I missed the new assignation you've made while I was updating the ticket.
comment:7 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This should be fixed in [1842]
However, we should probably take a look at trac-admin to see if there's a cleaner way to handle the opening of the environment so the individual methods don't need to do the checking.
In
trac/scripts/admin.py