Ticket #7244 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: keithhoffman Assigned to: bobbysmith007
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

Change History

06/15/10 16:44:21 changed by bobbysmith007

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.

06/18/10 21:23:36 changed by bobbysmith007

  • status changed from new to closed.
  • resolution set to fixed.

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

06/22/10 18:07:57 changed by physician assistant

  • cc set to Hohenems.

nice post. thanks.


Add/Change #7244 (NameError: global name 'Chrome' is not defined when trying to export tickets with the timingandestimation plugin installed)




Change Properties
Action