id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
7996	csv export doesn't work	anonymous	rjollos	When trying to export tickets using the CSV function, it returns:\r\n\r\n!AttributeError: 'list' object has no attribute 'keys'\r\n\r\n----\r\n\r\n==== How to Reproduce ====\r\n\r\nWhile doing a GET operation on `/hours`, Trac issued an internal error.\r\n\r\n''(please provide additional details here)''\r\n\r\nRequest parameters:\r\n{{{\r\n{'format': u'csv'}\r\n}}}\r\n\r\nUser agent: `Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8`\r\n\r\n==== System Information ====\r\n''System information not available''\r\n\r\n==== Enabled Plugins ====\r\n''Plugin information not available''\r\n\r\n==== Python Traceback ====\r\n{{{\r\nTraceback (most recent call last):\r\n  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 511, in _dispatch_request\r\n    dispatcher.dispatch(req)\r\n  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 237, in dispatch\r\n    resp = chosen_handler.process_request(req)\r\n  File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 234, in process_request\r\n    return self.process_timeline(req)\r\n  File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 509, in process_timeline\r\n    return self.display_html(req, query)\r\n  File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 834, in display_html\r\n    self.queryhours2csv(req, data)\r\n  File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 986, in queryhours2csv\r\n    for constraint in sorted(data['constraints'].keys()):\r\nAttributeError: 'list' object has no attribute 'keys'\r\n}}}	defect	closed	normal	TracHoursPlugin	normal	fixed			0.12
