Edgewall Software

Ticket #5511 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

TypeError: format_to_html() got an unexpected keyword argument 'abs_url'

Reported by: johnog@… Owned by: cboos
Priority: normal Milestone: 0.11
Component: report system Version: devel
Severity: minor Keywords:
Cc:

Description

How to Reproduce

While doing a GET operation on /report/1, Trac issued an internal error.

Clicked the RSS link for active tickets.

Request parameters:

{'id': u'1', 'USER': u'jgriffin', 'format': u'rss'}

System Information

Trac 0.11dev-r5686
Python 2.4.3 (#2, Oct 6 2006, 08:04:11)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)]
setuptools 0.6c6
SQLite 3.2.8
pysqlite 2.0.5
Genshi 0.4.1
Subversion 1.3.1 (r19032)

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5686-py2.4.egg/trac/web/main.py", line 432, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5686-py2.4.egg/trac/web/main.py", line 239, in dispatch
    data, content_type)
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5686-py2.4.egg/trac/web/chrome.py", line 597, in render_template
    return stream.render(method, doctype=doctype)
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/core.py", line 154, in render
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/output.py", line 45, in encode
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/output.py", line 172, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/output.py", line 515, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/output.py", line 675, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/output.py", line 455, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/core.py", line 212, in _ensure
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/template/markup.py", line 246, in _include
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/template/markup.py", line 291, in _match
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/template/markup.py", line 236, in _exec
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/template/base.py", line 420, in _eval
  File "/usr/lib/python2.4/site-packages/Genshi-0.4.1-py2.4.egg/genshi/template/eval.py", line 136, in evaluate
  File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r5686-py2.4.egg/trac/ticket/templates/report.rss", line 33, in <Expression u'unicode(wiki_to_html(row.context, cell.value, abs_url=True))'>
    <description>${unicode(wiki_to_html(row.context, cell.value, abs_url=True))}</description>
TypeError: format_to_html() got an unexpected keyword argument 'abs_url'

Attachments

Change History

Changed 19 months ago by cboos

  • owner changed from jonas to cboos
  • component changed from general to report system
  • severity changed from normal to trivial
  • milestone set to 0.11

Woops, should be abs_urls.

Changed 19 months ago by cboos

  • status changed from new to closed
  • resolution set to fixed
  • severity changed from trivial to minor

Fixed in r5687. There was also the problem that this abs_urls argument was not taken into account. Thanks for the report!

I'll soon work on the RenderingContext stuff which should make all this more explicit.

Add/Change #5511 (TypeError: format_to_html() got an unexpected keyword argument 'abs_url')

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.