Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9681 closed defect (fixed)

[PATCH] Project index fails

Reported by: Mikael Relbe Owned by: Mikael Relbe
Priority: highest Milestone: 1.0
Component: rendering Version: 0.13dev
Severity: blocker Keywords:
Cc: Branch:
Release Notes:

-

API Changes:
Internal Changes:

Description

Project index fails as of r10176 due to incorrect parameter usage on line 699 in trac/web/main.py.

Please change to the following instead:

  • trac/web/main.py

    diff --git a/trac/web/main.py b/trac/web/main.py
    a b  
    696696            req.hdf['projects'] = projects
    697697            req.display(template)
    698698
    699         loader = TemplateLoader(loadpaths, variable_lookup='lenient', encoding='utf-8')
     699        loader = TemplateLoader(loadpaths, variable_lookup='lenient',
     700                                default_encoding='utf-8')
    700701        tmpl = loader.load(template)
    701702        stream = tmpl.generate(**data)
    702         output = stream.render('xhtml', doctype=DocType.XHTML_STRICT, encoding='utf-8')
     703        output = stream.render('xhtml', doctype=DocType.XHTML_STRICT,
     704                               encoding='utf-8')
    703705        req.send(output, 'text/html')
    704706
    705707    except RequestDone:

Line 702 is a nit-picking change to keep line length below 79 chars, according to TracDev/CodingStyle, you know :)

Attachments (0)

Change History (6)

comment:1 by Christian Boos, 14 years ago

Owner: set to Mikael Relbe

Well spotted!

Did you verify the fix with genshi-3k, as r10176 was actually a follow-up to r10168 meant to provide support for this experimental genshi branch? (details in r10168).

in reply to:  1 comment:2 by Mikael Relbe, 14 years ago

Replying to cboos:

Well spotted!

Did you verify the fix with genshi-3k /…/

No, it was verified with Genshi 0.6. I checked the description of milestone:0.13, which currently states "requires Genshi 0.6"… Perhaps change the requirement of Genshi version/branch instead?

comment:3 by Christian Boos, 14 years ago

No, no problem if you tried with Genshi 0.6. I'll check with genshi-3k, which is by no way a requirement (only a "nice to have" compatibility, and will hopefully help Simon to get his changes into mainline Genshi).

comment:4 by Mikael Relbe, 14 years ago

My proposal above is in line with r10168, so I think it's safe to just apply the patch to the Trac trunk to recover.

comment:5 by Christian Boos, 14 years ago

Resolution: fixed
Status: newclosed

Correct, patch applied in r10216. Thanks!

I just verified, actually r10176 broke it for genshi-3k as well ;-)

comment:6 by Christian Boos, 14 years ago

Release Notes: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Mikael Relbe.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Mikael Relbe 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.