Modify ↓
Opened 17 years ago
Closed 17 years ago
#5930 closed defect (fixed)
TypeError: from_string() takes exactly 3 non-keyword arguments (4 given)
Reported by: | Owned by: | Tim Hatch | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | report system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /report/10
, Trac issued an internal error.
I tried with
query:component=My Component
Please notice the whitespace.
Request parameters:
{'id': u'10'}
System Information
Trac | 0.11dev-r5963
|
Python | 2.4.4 (#1, Apr 5 2007, 18:41:00) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
|
setuptools | 0.6c6
|
SQLite | 3.3.8
|
pysqlite | 2.3.2
|
Genshi | 0.4.3
|
Pygments | 0.5.1
|
Subversion | 1.4.2 (r22196)
|
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5963-py2.4.egg/trac/web/main.py", line 381, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5963-py2.4.egg/trac/web/main.py", line 191, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5963-py2.4.egg/trac/ticket/report.py", line 95, in process_request template, data, content_type = self._render_view(req, db, id) File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5963-py2.4.egg/trac/ticket/report.py", line 260, in _render_view query = Query.from_string(self.env, req, query[6:], report=id) TypeError: from_string() takes exactly 3 non-keyword arguments (4 given)
Attachments (0)
Change History (2)
comment:1 by , 17 years ago
Component: | general → report system |
---|---|
Milestone: | → 0.11 |
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Bugfix committed as r5971. Eli, for testing:
INSERT INTO report (title, query, description) VALUES ("Saved Query", "query:version=1.0", "");
- Navigate to /report
- Visit "Saved Query"
- Verify we didn't get an error
Can you also throw in addition of a 1.0 ticket and a 2.0 ticket as part of the demo env, then see that only the correct one shows up in the report?
Note:
See TracTickets
for help on using tickets.
Yep, that's a bug. I'm working on it.