Modify ↓
#7996 closed defect (fixed)
csv export doesn't work
| Reported by: | anonymous | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Component: | TracHoursPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.12 |
Description (last modified by )
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'
Attachments (0)
Change History (5)
comment:1 Changed 15 years ago by
| Description: | modified (diff) |
|---|---|
| Owner: | changed from ejucovy to Ryan J Ollos |
| Status: | new → assigned |
comment:2 Changed 15 years ago by
See #6336 for a related issue with another plugin. In particular, the link in that thread to the Google Groups message is helpful.
comment:3 Changed 15 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:4 Changed 15 years ago by
comment:5 Changed 15 years ago by
(In [9620]) Merged [9617:9619] from trunk to branches/0.12. Refs #7996.
Note: See
TracTickets for help on using
tickets.



Confirmed with
Trac 0.12.2dev-r10331.