Modify ↓
Opened 20 years ago
Closed 19 years ago
#2401 closed defect (duplicate)
Oops when creating query: link with order param
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wiki system | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
Adding a query link "status=new&order=priority" to a page gave me the following error:
Oops… Trac detected an internal error:
<lambda>() got multiple values for keyword argument 'order'
If I take out the "order=priority" param, it works (and automatically adds an order=priority). If I change "order=priority" to "order=status", it fails in the same way.
Here's the backtrace:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/cgi_frontend.py", line 131, in run
dispatch_request(req.path_info, req, env)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 90, in process_request
self._render_editor(req, db, page, preview=True)
File "/usr/lib/python2.4/site-packages/trac/wiki/web_ui.py", line 310, in _render_editor
info['page_html'] = wiki_to_html(page.text, self.env, req, db)
File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 751, in wiki_to_html
Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 608, in format
result = re.sub(self.rules, self.replace, line)
File "/usr/lib/python2.4/sre.py", line 142, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 228, in replace
return getattr(self, '_' + itype + '_formatter')(match, fullmatch)
File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 296, in _lhref_formatter
return self._make_link(ns, target, match, label)
File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 300, in _make_link
return self.link_resolvers[ns](self, ns, target, label)
File "/usr/lib/python2.4/site-packages/trac/ticket/query.py", line 601, in _format_link
return '<a class="query" href="%s">%s</a>' \
File "/usr/lib/python2.4/site-packages/trac/ticket/query.py", line 167, in get_href
format=format,
TypeError: <lambda>() got multiple values for keyword argument 'order'
Attachments (0)
Change History (2)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



This appears to have been fixed in 0.10. For example:
try query