Opened 13 years ago
Last modified 13 years ago
#7996 closed defect
csv export doesn't work — at Initial Version
Reported by: | anonymous | Owned by: | ejucovy |
---|---|---|---|
Priority: | normal | Component: | TracHoursPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
When trying to export tickets using the CSV function, it returns:
AttributeError: 'list' object has no attribute 'keys'
How to Reproduce
While doing a GET operation on /hours
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'format': u'csv'}
User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
System Information
System information not available
Enabled Plugins
Plugin information not available
Python Traceback
Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 511, in _dispatch_request dispatcher.dispatch(req) File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 234, in process_request return self.process_timeline(req) File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 509, in process_timeline return self.display_html(req, query) File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 834, in display_html self.queryhours2csv(req, data) File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.5.2-py2.5.egg/trachours/hours.py", line 986, in queryhours2csv for constraint in sorted(data['constraints'].keys()): AttributeError: 'list' object has no attribute 'keys'
Note: See
TracTickets for help on using
tickets.