Modify ↓
#2818 closed defect (fixed)
query oops: <lambda>() got multiple values for keyword argument 'group'
| Reported by: | Owned by: | Matthew Good | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.10 |
| Component: | ticket system | Version: | 0.9.4 |
| Severity: | normal | Keywords: | query |
| Cc: | paul@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
The following query made our trac say oops:
query: group=owner&status!=closed&reporter~=keturn
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/cgi_frontend.py", line 130, in run
dispatch_request(req.path_info, req, env)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 107, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 92, in process_request
self._render_editor(req, db, page, preview=True)
File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 311, in _render_editor
info['page_html'] = wiki_to_html(page.text, self.env, req, db)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 744, in wiki_to_html
Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 599, in format
result = re.sub(self.rules, self.replace, line)
File "/usr/lib/python2.3/sre.py", line 143, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 221, in replace
return getattr(self, '_' + itype + '_formatter')(match, fullmatch)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 271, in _shref_formatter
return self._make_link(ns, target, match, match)
File "/usr/lib/python2.3/site-packages/trac/wiki/formatter.py", line 295, in _make_link
util.escape(label, False))
File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 631, in _format_link
return '<a class="query" href="%s">%s</a>' \
File "/usr/lib/python2.3/site-packages/trac/ticket/query.py", line 174, in get_href
format=format, **self.constraints)
TypeError: <lambda>() got multiple values for keyword argument 'group'
Attachments (0)
Change History (5)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
| Cc: | added |
|---|
Whoops, typo in my email address in the previous comment. Sorry about that.
comment:4 by , 20 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.



Same here; the workaround we use is:
It would be nice to be able to use the more concise syntax with
groupthough.