Modify ↓
#13080 closed defect (fixed)
Trac 1.3.2dev: AttributeError: 'Environment' object has no attribute 'get_read_db'
| Reported by: | lkraav | Owned by: | Russ Tyndall |
|---|---|---|---|
| Priority: | normal | Component: | TimingAndEstimationPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: |
Description (last modified by )
Crash on /billing handler.
Traceback:
File "/home/trac/src/trac.git/trac/web/main.py", line 630, in _dispatch_request dispatcher.dispatch(req) File "/home/trac/src/trac.git/trac/web/main.py", line 252, in dispatch resp = chosen_handler.process_request(req) File "/home/trac/src/trac-hacks.git/timingandestimationplugin/branches/trac1.0/timingandestimationplugin/webui.py", line 130, in process_request mgr = CustomReportManager(self.env, self.log) File "/home/trac/src/trac-hacks.git/timingandestimationplugin/branches/trac1.0/timingandestimationplugin/reportmanager.py", line 22, in __init__ self.upgrade() File "/home/trac/src/trac-hacks.git/timingandestimationplugin/branches/trac1.0/timingandestimationplugin/reportmanager.py", line 27, in upgrade version = tryint(dbhelper.get_system_value(self.env, self.name)) File "/home/trac/src/trac-hacks.git/timingandestimationplugin/branches/trac1.0/timingandestimationplugin/dbhelper.py", line 127, in get_system_value return get_scalar(env, "SELECT value FROM system WHERE name=%s", 0, key) File "/home/trac/src/trac-hacks.git/timingandestimationplugin/branches/trac1.0/timingandestimationplugin/dbhelper.py", line 48, in get_scalar data = get_first_row(env, sql, *params); File "/home/trac/src/trac-hacks.git/timingandestimationplugin/branches/trac1.0/timingandestimationplugin/dbhelper.py", line 35, in get_first_row db = env.get_read_db()
Attachments (3)
Change History (11)
comment:1 Changed 9 years ago by
| Description: | modified (diff) |
|---|
Changed 9 years ago by
| Attachment: | 0001-timingandestimationplugin-trac-1.0-db-api-compatibil.patch added |
|---|
comment:3 Changed 9 years ago by
I have been quite busy this year as my company recently lost a valuable employee. I will try to get to this soon :)
Changed 9 years ago by
| Attachment: | 0001-timingandestimationplugin-trac-1.0-db-api-compatibil-v2.patch added |
|---|
comment:4 Changed 9 years ago by
v2 patch includes additional db api compatibility updates.
The changes aren't actually big, just mostly about with env.db_query as db: indentation.
Looking forward to having you back, Russ
comment:5 Changed 9 years ago by
If you use db=None for environment_needs_upgrade and upgrade_environment, the patch should work for Trac 1.0 and 1.2.
Changed 9 years ago by
| Attachment: | 0001-timingandestimationplugin-trac-1.0-db-api-compatibil-v3.patch added |
|---|
comment:7 Changed 8 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Sorry it took so long and much thank lkraav!
Note: See
TracTickets for help on using
tickets.



Specify
/billinghandler