Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#7244 closed defect (fixed)

NameError: global name 'Chrome' is not defined when trying to export tickets with the timingandestimation plugin installed

Reported by: Keith Hoffman Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: major Keywords:
Cc: Hohenems Trac Release: 0.11

Description

If you use the custom query to try to export tickets into a CSV or tab delimited file, you will receive the error: NameError: global name 'Chrome' is not defined.

Most recent call last: File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 444, in _dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 205, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.6/dist-packages/trac/ticket/query.py", line 832, in process_request

format, filename=None)

File "/usr/lib/python2.6/dist-packages/trac/mimeview/api.py", line 924, in send_converted

content, selector)

File "/usr/lib/python2.6/dist-packages/trac/mimeview/api.py", line 650, in convert_content

output = converter.convert_content(req, mimetype, content, ck)

File "/usr/lib/python2.6/dist-packages/trac/ticket/query.py", line 736, in convert_content

return self.export_csv(req, query, mimetype='text/csv')

File "build/bdist.linux-i686/egg/timingandestimationplugin/tande_filters.py", line 56, in new_csv_export

System Information:

User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4

Trac: 0.11.5 Python: 2.6.4 (r264:75706, Dec 7 2009, 19:02:09) [GCC 4.4.1] setuptools: 0.6c11 SQLite: 3.6.16 pysqlite: 2.5.5 Genshi: 0.5.1 mod_python: 3.3.1 Pygments: 1.2.2 Subversion: 1.6.5 (r38866) CustomFieldAdmin: 0.2.2 jQuery: 1.3.2

Attachments (0)

Change History (3)

comment:1 Changed 14 years ago by Russ Tyndall

Thanks for the report, my dev setup is down at the moment, however I will try to get that running and post a fix rapidly.

comment:2 Changed 14 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

(In [8130]) fixed missing import that would cause ticket query exports with CC/Reporter to error, fixes #7244

comment:3 Changed 14 years ago by physician assistant

Cc: Hohenems added; anonymous removed

nice post. thanks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.