Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#5511 closed defect (fixed)

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

Reported by: johnog@… Owned by: Christian Boos
Priority: normal Milestone: 0.11
Component: report system Version: devel
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

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 (0)

Change History (2)

comment:1 by Christian Boos, 16 years ago

Component: generalreport system
Milestone: 0.11
Owner: changed from Jonas Borgström to Christian Boos
Severity: normaltrivial

Woops, should be abs_urls.

comment:2 by Christian Boos, 16 years ago

Resolution: fixed
Severity: trivialminor
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.