id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
3157	Causes error when trying to view a ticket	anonymous	k0s	 Trac detected an internal error:\r\n\r\nKeyError: u'\\u0432'\r\n\r\nPython Traceback\r\nMost recent call last:\r\n\r\n    * File "/usr/lib/python2.5/site-packages/AutoQuery-0.1.2-py2.5.egg/autoquery/templates/autoquery_ticket.html", line 167, in <Expression u'query_link(field.name, ticket[field.name])'>\r\n      Code fragment:\r\n       162. <py:if test="field">\r\n       163. <py:choose test="">\r\n       164. <py:when test="'rendered' in field">${field.rendered}</py:when>\r\n       165. <py:otherwise>\r\n       166. <py:if test="ticket[field.name]">\r\n       167. <a href="${query_link(field.name, ticket[field.name])}">\r\n       168. ${ticket[field.name]}\r\n       169. </a>\r\n       170. </py:if>\r\n       171. </py:otherwise>\r\n       172. </py:choose>\r\n      Local variables:\r\n      Name_Value\r\n      __data__ _[{'field': {'name': 'priority', 'type': 'select', 'value': u'major', ...\r\n    * File "/usr/lib/python2.5/site-packages/AutoQuery-0.1.2-py2.5.egg/autoquery/autoquery.py", line 81, in <lambda>\r\n      Code fragment:\r\n        76.  \r\n        77. (Since 0.11)\r\n        78. """\r\n        79. if template == 'ticket.html':\r\n        80. query = self.env.href() + '/query?%s=%s' + self.query_args\r\n        81. data['query_link'] = lambda x, y: query % (x, urllib.quote_plus(y))\r\n        82. template = 'autoquery_ticket.html'\r\n        83. return (template, data, content_type)\r\n      Local variables:\r\n      Name_Value\r\n      query _u'/trac/mediaplan/query?%s=%s&order=priority'\r\n      x _'priority'\r\n      y _u'\\u0432\\u0430\\u0436\\u043d\\u044b\\u0439'\r\n    * File "/usr/lib/python2.5/urllib.py", line 1213, in quote_plus\r\n      Code fragment:\r\n      1208. def quote_plus(s, safe = ''):\r\n      1209. """Quote the query fragment of a URL; replacing ' ' with '+'"""\r\n      1210. if ' ' in s:\r\n      1211. s = quote(s, safe + ' ')\r\n      1212. return s.replace(' ', '+')\r\n      1213. return quote(s, safe)\r\n      1214.  \r\n      1215. def urlencode(query,doseq=0):\r\n      1216. """Encode a sequence of two-element tuples or dictionary into a URL query string.\r\n      1217.  \r\n      1218. If any values in the query arg are sequences and doseq is true, each\r\n      Local variables:\r\n      Name_Value\r\n      s _u'\\u0432\\u0430\\u0436\\u043d\\u044b\\u0439'\r\n      safe _''\r\n    * File "/usr/lib/python2.5/urllib.py", line 1205, in quote\r\n      Code fragment:\r\n      1200. safe_map = {}\r\n      1201. for i in range(256):\r\n      1202. c = chr(i)\r\n      1203. safe_map[c] = (c in safe) and c or ('%%%02X' % i)\r\n      1204. _safemaps[cachekey] = safe_map\r\n      1205. res = map(safe_map.__getitem__, s)\r\n      1206. return ''.join(res)\r\n      1207.  \r\n      1208. def quote_plus(s, safe = ''):\r\n      1209. """Quote the query fragment of a URL; replacing ' ' with '+'"""\r\n      1210. if ' ' in s:\r\n      Local variables:\r\n      Name_Value\r\n      cachekey _('', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-')\r\n      s _u'\\u0432\\u0430\\u0436\\u043d\\u044b\\u0439'\r\n      safe _''\r\n      safe_map _{'\\x00': '%00', '\\x83': '%83', '\\x04': '%04', '\\x87': '%87', '\\x08': ...\r\n\r\nFile "/usr/lib/python2.5/site-packages/AutoQuery-0.1.2-py2.5.egg/autoquery/templates/autoquery_ticket.html", line 167, in <Expression u'query_link(field.name, ticket[field.name])'>\r\n  <a href="${query_link(field.name, ticket[field.name])}">\r\nFile "/usr/lib/python2.5/site-packages/AutoQuery-0.1.2-py2.5.egg/autoquery/autoquery.py", line 81, in <lambda>\r\n  data['query_link'] = lambda x, y: query % (x, urllib.quote_plus(y))\r\nFile "/usr/lib/python2.5/urllib.py", line 1213, in quote_plus\r\n  return quote(s, safe)\r\nFile "/usr/lib/python2.5/urllib.py", line 1205, in quote\r\n  res = map(safe_map.__getitem__, s)\r\n\r\nUser Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.8.1.14) Gecko/20080404 Iceweasel/2.0.0.14 (Debian-2.0.0.14-2)\r\nTrac: _0.11dev-r7184\r\nPython: _2.5.2 (r252:60911, May 15 2008, 17:59:19) [GCC 4.3.1 20080501 (prerelease)]\r\nsetuptools: _0.6c8\r\nSQLite: _3.5.9\r\npysqlite: _2.4.1\r\nGenshi: _0.5dev-r860\r\nPygments: _0.10\r\nSubversion: _1.4.6 (r28521)\r\njQuery:_1.2.3	defect	closed	normal	AutoQueryPlugin	blocker	fixed			0.11
