Edgewall Software

Ticket #5931 (new defect)

Opened 15 months ago

Last modified 5 months ago

attachments.html template errors out under genshi strict mode

Reported by: ben@… Owned by: cboos
Priority: normal Milestone: 0.11-retriage
Component: attachment Version:
Severity: normal Keywords: verify
Cc:

Description

I am using Trac 0.11dev-r5904 with Genshi 0.5dev-r726 and I get the following error any time I try to view an wiki page attachment:

File "/opt/local/lib/python2.5/site-packages/Trac-0.11dev_r5904-py2.5.egg/trac/templates/attachment.html", line 13, in <Suite u'parent = attachments and attachments.parent or context.parent; parent_name = parent.name(); parent_href = parent.get_href(href)'> <body py:with="parent = attachments and attachments.parent or context.parent;

This looks like the Genshi strict mode (default in Genshi 0.5) is breaking the attachments template.

System Information:

User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/522.11.1 (KHTML, like Gecko) Version/3.0.3 Safari/522.12.1

Trac: 0.11dev-r5904 Python: 2.5.1 (r251:54863, Jun 28 2007, 17:56:20) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] setuptools: 0.6c5 SQLite: 3.4.0 pysqlite: 2.3.2 Genshi: 0.5dev-r726 Subversion: 1.4.2 (r22196) jQuery: 1.1.3.1

Attachments

Change History

Changed 11 months ago by cboos

  • keywords verify added
  • milestone set to 0.11.1

We're now using the 'lenient' mode, but it might be interesting to check again what happens in strict mode.

Changed 5 months ago by Piotr Kuczynski <piotr.kuczynski@…>

  • component changed from wiki system to attachment

Add/Change #5931 (attachments.html template errors out under genshi strict mode)

Author



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